0
如果我在配置Web.config
文件是這樣的:ASP.NET自定義錯誤頁返回500
<configuration>
<system.web>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<customErrors mode="On" defaultRedirect="err_404.html">
<error statusCode="404" redirect="err_404.html" />
<error statusCode="403" redirect="err_403.html" />
</customErrors>
</system.web>
我得到500.19內部服務器錯誤。我該如何解決?
你能告訴更多關於錯誤的描述?例如,當web.config對IIS_IUSRS組沒有權限時,可以收到500.19響應代碼。 –
@AndrewOrlov它表示服務器配置文件無效。 –
這段簡短的摘錄很難說出錯。現在我只能看到錯誤的關閉' configuration>'。你可以顯示你的整個web.config?當然沒有敏感數據。 –