谁可以帮助我呢?我根本不知道该怎么办。从头到尾,我什至都不知道如何创建标签或什么都不做。帮我?尽快这是它的外观:
“/HRX”应用程序中的服务器错误。运行时错误说明:服务器上发生了应用程序错误。该应用程序的当前自定义错误设置可防止出于安全原因而远程查看该应用程序错误的详细信息。但是,可以由运行在本地服务器计算机上的浏览器查看它。
Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".
Server Error in '/HRX' 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>
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>
最佳答案
如果您具有对服务器的远程访问权限,请尝试在本地浏览服务器上的页面。
否则,尝试将customerrors模式设置为“关闭”并部署它。
<customErrors mode="Off"/>
如果您采用上述任何一种方法,都希望看到Exception StackTrace。这可能会为您提供更好的错误提示。
关于asp.net - 运行时错误根本不知道该怎么办,我对这些事情没有经验,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21438669/