IIS中的Web配置错误

问题描述:

我有一个在本地主机上正常工作的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> 

我能做些什么来纠正这个问题?

+0

你得到什么错误只是打开自定义错误模式,并找到真正的错误。 –

+0

这不是错误消息,只是提示您应将customErrors切换为“Off”以查看真实的错误消息。 – Olaf

+0

和错误是? – Pleun

我不相信这是在全部的错误消息,但我认为,导致这就是你得到的消息部分这是要求你把关闭定义错误的为了看看问题的根本原因究竟是什么。

如果你打开你的web.config文件并找到customErrors元素,改变modeOff并上传 - 现在当你打你的网页有错误,你应该找到什么错误的详细异常消息。

+0

请chk我的问题..我编辑了... – Nithesh

+0

@Nithesh:我的答案仍然存在,将'customErrors'更改为'mode =“Off”'。 –

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

确定哪些应用程序池您的Web应用程序使用,然后检查这是使用asp.net运行时的版本(右键单击该应用程序池 - >高级设置 - > .NET Framework版本)

+0

不..都是3.5 – Nithesh

它意味着您的应用程序出现错误,可能是由于许多原因造成的。 做什么错误说....这是添加

<customErrors mode="Off"/> 

<system.web> 

然后重新装入服务器webconfig文件....现在当你运行应用程序......你会是指出错误发生的方向。 然后您将知道确切的情况并纠正问题。

+0

我的答案有什么问题? – Neelam