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
Asp.Net 程序错误Runtime Error原因与解决
2019-07-16 21:43服务器之家 ASP.NET教程
提示这个,不管怎么改配置文件的设置都不行,下面是修正方法,大家可以试试。
延伸 · 阅读
- 2019-07-16Asp.NET 生成静态页面并分页的代码
- 2019-07-16asp.net URL中包含中文参数造成乱码的解决方法
- 2019-07-16ASP.NET读取XML文件4种方法分析
- 2019-07-16asp.net 无刷新翻页就是这么简单
- 2019-07-16ASP.NET 页面刷新的实现方法(包括html,js)
- 2019-07-16Javascript 直接调用服务器C#代码 ASP.NET Ajax实例
精彩推荐
- ASP.NET教程
VS2005 水晶报表在时部署时遇到的问题
前几天在服务器上部署一个B/S程序的时候,程序中的水晶报表部分出了些问题,报错:Server Error in '/' Application....
- ASP.NET教程
asp.net 无法获取的内部内容,因为该内容不是文本 的解决方法
asp.net 无法获取的内部内容,因为该内容不是文本 的解决方法...
- ASP.NET教程
asp.net AJAX注册类
单纯用JavaScript,不需要注册,但是就是用不了AJAX的某些机制。...
- ASP.NET教程
未将对象引用设置到对象的实例 (System.NullReferenceException)
System.NullReferenceException:未将对象引用设置到对象的实例,这是一个新鸟,中鸟,老鸟都避不开的错误...
- ASP.NET教程
asp.net(c#)文件下载实现代码
本文通过一个实例向大家介绍用C#进行Internet通讯编程的一些基本知识。我们知道.Net类包含了请求/响应层、应用协议层、传输层等层次。...
- ASP.NET教程
asp.net 光棒效应实现代码
asp.net 光棒效应实现代码...
- ASP.NET教程
asp.net MaxLengthValidator 最大长度验证控件代码
如果数据库字段为varchar或char类型,ASP.NET控件在可输入汉字的情况下,MaxLength属性不能保证在保存到数据库时不发生截断错误,因此写了一个最大长度验证控件,还可用于多行文本框。...
- ASP.NET教程
Silverlight中动态获取Web Service地址
在使用WCF或者WS进行数据库操作的时候都需要有一个明确的服务地址,如果是WCF就是svc文件地址。初学者通常会直接使用VS的Add Service Reference来添加引用。这的确是十分方便的手段,但是这样会带来什么样的麻烦呢? 第一,在开发...