Asp.Net 程序错误Runtime Error原因与解决
2010-03-08 00:00
761 查看
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>
真实原因:.net装了以后,没有正常注册到iis
解决办法:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
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>
真实原因:.net装了以后,没有正常注册到iis
解决办法:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
相关文章推荐
- Asp.Net 程序错误Runtime Error原因与解决
- Asp.Net 程序错误Runtime Error原因与解决
- 关于ASP.NET runtime error的可能原因和解决方法
- 在ASP.NET中使用IHttpHandler处理请求(如自实现AJAX)时,无法获得Session(或者说是Session 为 null)的原因及解决方法
- ASP.NET常见错误,原因及解决方法
- asp.net 2.0中 FreeTextBox报错的原因分析和解决办法
- asp.net"访问被拒绝,程序集无法加载"原因与解决方法[摘录]
- Asp.net 默认配置下,Session莫名丢失的原因及解决办法
- asp.net中不能在DropDownList中选择多个项 原因分析及解决方法
- 建立新的ASP.NET Club Stater Kit站点后因为数据库原因无法运行的解决办法
- asp.net中url字符串编码乱码的原因与解决方法
- asp.net中url字符串编码乱码的原因与解决方法
- asp.net 默认配置下,Session莫名丢失的原因及解决办法
- Asp.net 默认配置下,Session莫名丢失的原因及解决办法
- asp.net批量删除XML节点失败的原因及解决办法
- ASP.NET "正在中止线程"错误原因及解决方法【转】
- asp.net中不能在DropDownList中选择多个项 原因分析及解决方法
- Asp.net 默认配置下,Session莫名丢失的原因及解决办法
- Asp.net 默认配置下,Session莫名丢失的原因及解决办法
- [转载]Asp.net默认配置下,Session莫名丢失的原因及解决