IIS aspnet_regiis.exe -i Server Application Unavailable 【Failed to execute request because the App-Domain could not be created.】的解决办法
页面出现问题:
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
打开ASP.NET 网站时,发生错误,经查看Web服务器的「事件查看器」中之「应用程序」,如果错误是:
Failed to execute request because the App-Domain could not be created. Error: 0x80131902
基本上,这种情况最可能发生在第一次执行 .Net framework 2.0 ,原因不明,但下面的做法大致可以解決此问题:
1.首先打开「命令提示符」,切换目录到 %SystemRoot%\Microsoft.Net\Framework\ (%SystemRoot% 視你 Windows 安裝目录而定,一般是在 C:\Windows)
2.执行 "net stop w3svc" 停止 w3svc 服务
3.切换到下级目录 v2.0.50727
4.执行 "aspnet_regiis.exe -ua" 解除 .Net 安裝
5.重新安裝 .Net 到 IIS 中 "aspnet_regiis.exe -i"
6.重新启动 w3svc "net start w3svc".
真累人啊!不过终于搞好了!Happy 啊!O(∩_∩)O哈哈~
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 字符编码:从基础到乱码解决