Asp.net IIS中的Web配置错误

Asp.net IIS中的Web配置错误,asp.net,iis,web-config,Asp.net,Iis,Web Config,我有一个ASP.NET Web应用程序,它在localhost中正常工作。但在IIS中托管时,将显示以下错误消息: 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 appli

我有一个ASP.NET Web应用程序,它在localhost中正常工作。但在IIS中托管时,将显示以下错误消息:

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>
“/”应用程序中出现服务器错误。 运行时错误 描述:服务器上发生应用程序错误。此应用程序的当前自定义错误设置阻止远程查看应用程序错误的详细信息(出于安全原因)。但是,本地服务器上运行的浏览器可以查看它。 详细信息:要在远程计算机上查看此特定错误消息的详细信息,请在位于当前web应用程序根目录中的“web.config”配置文件中创建一个标记。然后,该标记的“mode”属性应设置为“Off”。
我能做些什么来纠正这个问题?

我不认为这是整个错误消息,但我相信这是您收到的消息的一部分,该消息要求您关闭自定义错误,以查看问题的根本原因到底是什么


如果打开web.config文件并找到
customErrors
元素,请将
模式更改为
Off
,然后将其上载-现在当您点击网页时出现错误,您应该会收到一条关于出错原因的详细异常消息。

当针对asp.net中开发的web应用程序加载不正确版本的.net运行时时,此错误很常见


确定您的web应用程序正在使用的应用程序池,然后检查此应用程序正在使用的asp.net运行时版本(右键单击应用程序池->高级设置->.net framework版本)

这意味着您的应用程序中存在一些错误,可能是由于多种原因造成的。 按照错误所说的去做……那就是添加

 <customErrors mode="Off"/>

  <system.web>

然后在服务器中重新加载webconfig文件…现在运行应用程序时。。。您将被指向错误发生的方向。
然后,您将知道exactl正在发生什么,并纠正问题。

您遇到了什么错误?只需打开自定义错误模式并找到真正的错误。这不是错误消息,只是提示您应将自定义错误切换到“关闭”以查看真正的错误消息。Sry我复制时出错了。。。请回答这个问题……这不是错误。这是显示的消息,而不是错误,以便对客户端隐藏实现细节。您需要登录到服务器并在那里浏览您的网站。或者,只需查看应用程序日志以了解异常详细信息。没有这些信息,这不是一个可以回答的问题。真是一团糟。这家伙显然需要帮助,但许多可能的选择中的任何一个都被否决了,现在问题已经解决了????无意义的所有答案都是相关的。请回答我的问题。。我的答案仍然有效,请将
customErrors
更改为
mode=“Off”
。我的答案有什么问题。。???