關於IIS下發布網站出現3005錯誤的問題

來源:互聯網
上載者:User

標籤: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錯誤的問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.