我有一個在本地主機上正常工作的ASP.NET Web應用程序。但是,當在IIS中承載以下錯誤消息顯示:IIS中的Web配置錯誤
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
我能做些什麼來糾正這個問題?
你得到什麼錯誤只是打開自定義錯誤模式,並找到真正的錯誤。 –
這不是錯誤消息,只是提示您應將customErrors切換爲「Off」以查看真實的錯誤消息。 – Olaf
和錯誤是? – Pleun