Asp.Net 程序錯(cuò)誤Runtime Error原因與解決
更新時(shí)間:2010年03月08日 21:45:44 作者:
提示這個(gè),不管怎么改配置文件的設(shè)置都不行,下面是修正方法,大家可以試試。
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>
真實(shí)原因:.net裝了以后,沒(méi)有正常注冊(cè)到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>
真實(shí)原因:.net裝了以后,沒(méi)有正常注冊(cè)到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
相關(guān)文章
ASP.NET中的Menu控件的應(yīng)用及XmlDataSource的了解
以前一直以為菜單都是通過(guò)sitemap制作的,最近看到項(xiàng)目中的方法是使用XmlDataSource榜定的,很是好奇,于是研究了一下,感覺(jué)還不錯(cuò)哦,感興趣的朋友也可以了解下啊,或許本文所提供的對(duì)你學(xué)習(xí)有所幫助呢2013-02-02在ASP.NET中使用Session常見(jiàn)問(wèn)題集錦
在ASP.NET中使用Session常見(jiàn)問(wèn)題集錦...2007-08-08詳解免費(fèi)開(kāi)源的DotNet任務(wù)調(diào)度組件Quartz.NET(.NET組件介紹之五)
本篇文章主要介紹免費(fèi)開(kāi)源的DotNet任務(wù)調(diào)度組件Quartz.NET(.NET組件介紹之五),具有一定參考價(jià)值,有興趣的可以了解一下。2016-12-12asp.net Web.config 詳細(xì)配置說(shuō)明
asp.net開(kāi)發(fā)的朋友,經(jīng)常用得到web.config文件的配置,所以我們特整理了中文說(shuō)明。2009-06-06VS2015在升級(jí)到Update2之后運(yùn)行Cordova項(xiàng)目異常的解決方案
這篇文章主要介紹了VS2015在升級(jí)到Update2之后運(yùn)行Cordova項(xiàng)目異常的解決方案的相關(guān)資料,需要的朋友可以參考下2016-07-07ASP.NET C#生成下拉列表樹(shù)實(shí)現(xiàn)代碼
下拉列表樹(shù)很方便且時(shí)尚的一個(gè)導(dǎo)航,貌似很多的朋友都想實(shí)現(xiàn)這樣一個(gè)列表樹(shù),本文將滿足你們的設(shè)想,通過(guò)本文你們可以學(xué)到如何使用c#生成下拉列表樹(shù),感興趣的你可不要錯(cuò)過(guò)了啊2013-02-02Asp.net SignalR創(chuàng)建實(shí)時(shí)聊天應(yīng)用程序
這篇文章主要介紹了Asp.net SignalR創(chuàng)建實(shí)時(shí)聊天應(yīng)用程序,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2016-11-11