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教程
提示這個,不管怎么改配置文件的設置都不行,下面是修正方法,大家可以試試。
延伸 · 閱讀
- 2022-03-10Runtime.getRuntime().exec 路徑包含空格的解決
- 2022-03-09java Runtime如何執(zhí)行多條命令
- 2022-03-09java使用Runtime執(zhí)行系統(tǒng)命令遇到的問題
- 2022-03-05Asp.Net(C#)使用oleDbConnection 連接Excel的方法
- 2022-03-03解決MySQL添加新用戶-ERROR 1045 (28000)的問題
- 2022-02-24織夢DEDECMS偽靜態(tài)下某些欄目顯示:”Request Error!”
- ASP.NET教程
GridView分頁的實現(xiàn)(通用分頁模板)
要在GridView中加入AllowPaging=true,一頁數(shù)據(jù)多少行PageSize=10分頁時觸發(fā)的事件OnPageIndexChanging等等,感興趣的朋友可以了解下本文,希望對你有所幫助 ...
- ASP.NET教程
.Net MVC實現(xiàn)長輪詢
這篇文章主要為大家詳細介紹了.Net MVC實現(xiàn)長輪詢的相關資料,具有一定的參考價值,感興趣的小伙伴們可以參考一下 ...
- ASP.NET教程
asp.net中的窗體身份驗證(最簡單篇)
這篇文章主要介紹了最簡單的asp.net中的窗體身份驗證,詳細敘述了asp.net的窗體身份驗證步驟,感興趣的小伙伴們可以參考一下 ...
- ASP.NET教程
asp.net gridview分頁:第一頁 下一頁 1 2 3 4 上一頁 最末頁
這篇文章主要介紹了asp.net gridview分頁:第一頁 下一頁 1 2 3 4 上一頁 最末頁,可使用上下鍵選中行,選中后點擊修改,textbox獲得gridview中的代碼的數(shù)據(jù),需要...
- ASP.NET教程
詳解ASP.NET 生成二維碼實例(采用ThoughtWorks.QRCode和QrCode.Net兩種方
本篇文章主要介紹了ASP.NET 生成二維碼實例,使用了兩種方法,包括ThoughtWorks.QRCode和QrCode.Net,具有一定的參考價值,有興趣的可以了解一下。 ...
- ASP.NET教程
微信小程序如何使用原生Websocket與Asp.Net Core SignalR 通信
背景 如題,這可能算是.net 做小程序的服務端時,繞不開的一個問題,老生常談了。同樣的問題,我記得我2018/19年的一個項目的解決方案是: 修改官方的...
- ASP.NET教程
ASP.NET OutputCache詳解
這篇文章主要介紹了ASP.NET OutputCache詳解,本文詳細講解了OutputCache的語法、OutputCache的參數(shù)、OutputCache使用示例等內容,需要的朋友可以參考下 ...
- ASP.NET教程
asp .net實現(xiàn)給圖片添加圖片水印方法示例
圖片上加水印相信每位程序員都會遇到這個需求,下面這篇文章主要給大家介紹了asp .net實現(xiàn)給圖片添加圖片水印的方法,文中給出了完整的實例代碼,相...