Server Error in '/' Application.
这个是什么问题啊。。。RuntimeErrorDescription:Anapplicationerroroccurredontheserver.Thecurrentcu...
这个是什么问题啊。。。
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>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration> 展开
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>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration> 展开
2个回答
展开全部
主要有以下两个问题:
一、由于配置中 Asp.Net 程序 没有显示详细的错误信息。
解决方法:按照要求,修改web.config 文件将 <customErrors mode="Off"/> 设置mode ="Off",上传到网站根目录。然后刷新就可以看到详细错误。然后根据错误修改程序就可以了。
二、web.config文件不是放在www根目录下。而是放在www的子目录下等。这样用户访问这个目录时就会出现提示错误.。
解决方法:将子目录下的Asp.net应用程序移到 www根目录下。 这样就可以看到详细错误了。可以根据错误调整程序。
参考资料
脚本之家.脚本之家[引用时间2018-1-23]
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询