標籤:des style http io ar os 使用 sp for
各位大神:
本人第一次部署網站,我是用VS2010開發的,先在本地發布在本機上後,將發布後的檔案拷貝在伺服器的檔案夾下然後設定管理員上的IIS,之後網站可以正常服務,但是伺服器(win server2003)運行兩天左右後報出“應用程式正常初始化(0xc0000044)失敗”,必須重啟後才能正常使用。查看了系統日誌後發現報如下的警告:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2014-11-4 22:53:40
Event time (UTC): 2014-11-4 14:53:40
Event ID: 01d725d1690044758c6a1ae8cca71d3e
Event sequence: 15
Event occurrence: 3
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/474487346/Root-1-130595834620000000
Trust level: Full
Application Virtual Path: /
Application Path: E:\zzxyszzx\
Machine name: RWXY
Process information:
Process ID: 4432
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: HttpException
Exception message: Response is not available in this context.
at System.Web.HttpApplication.get_Response()
at zzxy.Web.Global.Session_End(Object sender, EventArgs e) in C:\Users\Administrator\Desktop\WebOfZzxy\WebOfZzxy\Web\Global.asax.cs:line 87
Request information:
Request URL:
Request path:
User host address:
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 25
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.HttpApplication.get_Response()
at zzxy.Web.Global.Session_End(Object sender, EventArgs e) in C:\Users\Administrator\Desktop\WebOfZzxy\WebOfZzxy\Web\Global.asax.cs:line 87
小弟十分不解,有下面幾個問題:
1.伺服器出現上述的問題真的和網站的這個警告有關係嗎?
2.C:\Users\Administrator\Desktop\WebOfZzxy\WebOfZzxy\Web\Global.asax.cs:line 87
是我工程的路徑,為什麼在發布出來之後還能是報這樣一個位置的錯誤,而且代碼裡面沒有關於工程位置的代碼
protected void Session_End(Object sender, EventArgs e)
{
Response.Redirect("View/BackHome/login.aspx");
}
這是出錯代碼!
3.如何才能修複這個問題?
小弟在這裡先謝謝各位大神了,還望各位大神細心教導一下小弟,萬分感謝!
關於IIS下發布網站出現3005錯誤的問題