App-Domain could not be created. Error: 0x80131902

Mike Stone tonight came across an interesting issue, not with rainbow, but an issue nonetheless.
When he downloaded and went to run Rainbow 2.0 He came accross the following message

"Failed to execute request because the App-Domain could not be created. Error: 0x80131902"

Basically, this happens on first time 2.0 runs sometimes, not sure why, but the following seems to fix the problem. My suspicions and research lead me to believe it has to do with web servies referenced. To fix it, try the following....

  1. With a command window, get to the latest version of .net under
  2. C:\Windows\Microsoft.Net\Framework\
  3. Now run the following command: "net stop w3svc" to stop web services.
  4. Then use "aspnet_regiis.exe -ua" to uninstall all instances of ASP.NET from IIS.
  5. Follow with "aspnet_regiis.exe -i" to install ASP.NET into IIS.
  6. Now restart web services with "net start w3svc".
開啟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.5.xxx
4.執行 "aspnet_regiis.exe -ua" 解除 .Net 安裝
5.重新安裝 .Net 到 IIS 中 "aspnet_regiis.exe -i"
6.重新啟動 w3svc "net start w3svc".
arrow
arrow
    全站熱搜

    Chang 仁 發表在 痞客邦 留言(0) 人氣()