<httpRuntime executionTimeout="600" maxRequestLength="11000"
requestLengthDiskThreshold="80"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="5000"
enableKernelOutputCache="true"
enableVersionHeader="true"
requireRootedSaveAsPath="true" enable="true"
shutdownTimeout="90" delayNotificationTimeout="5"
waitChangeNotification="0" maxWaitChangeNotification="0"
enableHeaderChecking="true" sendCacheControlHeader="true"
apartmentThreading="false"/>
<trust level="Full"/>
<customErrors mode="on" defaultRedirect="~/Contents/error.aspx">
</customErrors>
這是我的錯誤處理web.config
這是行不通的。服務器錯誤'/'Application.Runtime錯誤
如果有任何異常拋出它不重定向到/Contents/error.aspx
頁面 難道是因爲我設置/Contents/error.aspx -
如果不是出了什麼問題與錯誤處理。
設置''來查看實際的錯誤。 –
Sachin
如果您沒有在您的自定義頁面中陷印並顯示錯誤,請閱讀該消息。這就像「要查看錯誤的詳細信息,請將customErrors設置爲在您的web.config中關閉」。將其設置爲關閉。這將告訴你什麼是錯的,直到你在自定義錯誤頁面中正確處理它。 –
有可能你的代碼沒有編譯 – rhughes