天天看點

在win2003上IIS部署可能出現的問題的解決方案一、在IIS上部署運作多個版本的ASP.NET Framework二、.NET 4.0 IIS伺服器報錯Unable to find messages file 'cscui.dll

在浏覽器中,請求失敗的錯誤提示資訊:

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.

注意:

web伺服器請求失敗的具體錯誤原因,可以在事件檢視器中找到。請檢閱應用程式日志來找出是什麼導緻了這個錯誤的發生。

在win2003上IIS部署可能出現的問題的解決方案一、在IIS上部署運作多個版本的ASP.NET Framework二、.NET 4.0 IIS伺服器報錯Unable to find messages file 'cscui.dll

我們會發現在事件檢視器中這個錯誤的 event id為1062,下面是錯誤的具體資訊: 

"在同一 iis 程序中不可能運作兩個不同的 asp.net 版本。請使用 iis 管理工具重新配置伺服器以在一個單獨的程序中運作應用程式。" 

在win2003上IIS部署可能出現的問題的解決方案一、在IIS上部署運作多個版本的ASP.NET Framework二、.NET 4.0 IIS伺服器報錯Unable to find messages file 'cscui.dll

錯誤原因:

假設一台伺服器上需要部署.net2.0和.net4寫的不同的web應用程式,iis6要求不同版本的framework的web應用程式,在其自己的應用程式池。假設有應用程式池1,應用池2,應用池1中可以運作多個framework為.net2的web應用程式,但是應用池1中不能有framework為,net4的web應用程式,否則會提示上述錯誤。同理,如果應用池2中,已經有.net4的web應用程式,這個應用池中就不能放有其他版本的web應用程式,否則會錯誤。(而在iis5,暫時沒有發現這個限制) 

解決方案: 

慶幸的是,解決的辦法也很簡單。隻要建立一個應用程式池,然後将.net4的web應用程式轉移到新的應用池即可。一旦我們将網站或虛拟目錄轉移到新的應用程式池,我們就可以着手将web應用程式更新到新的.net framework版本。請參照下面的操作步驟進行應用池的建立和轉移。

在win2003上IIS部署可能出現的問題的解決方案一、在IIS上部署運作多個版本的ASP.NET Framework二、.NET 4.0 IIS伺服器報錯Unable to find messages file 'cscui.dll
在win2003上IIS部署可能出現的問題的解決方案一、在IIS上部署運作多個版本的ASP.NET Framework二、.NET 4.0 IIS伺服器報錯Unable to find messages file 'cscui.dll

錯誤的提示資訊:

compilation error  

description: an error occurred during the compilation of a resource required to service this request. please review the following specific error details and modify your source code appropriately.  

compiler error message: cs2018: unable to find messages file 'cscui.dll' 

source error: 

[no relevant source lines] 

source file: line: 0 

解決辦法:如下圖所示,進行操作

在win2003上IIS部署可能出現的問題的解決方案一、在IIS上部署運作多個版本的ASP.NET Framework二、.NET 4.0 IIS伺服器報錯Unable to find messages file 'cscui.dll

錯誤的原因:

asp.net state server 服務關閉了,開啟即可。asp.net state server服務預設是手動開啟的, 是以很多時候在伺服器重新開機後,asp.net state server 服務其實是停止狀态的,最好将該服務設成自動啟動。

server error in '/' application. 

-------------------------------------------------------------------------------- 

  unable to make the session state request to the session state server. please ensure that the asp.net state service is started and that the client and server ports are the same. if the server is on a remote machine, please ensure that it accepts remote requests by checking the value of hkey_local_machine\system\currentcontrolset\services\aspnet_state\parameters\allowremoteconnection.   

  description: an unhandled exception occurred during the execution of the current web request. please review the stack trace for more information about the error and where it originated in the code.   

  exception details: system.web.httpexception: unable to make the session state request to the session state server. please ensure that the asp.net state service is started and that the client and server ports are the same. if the server is on a remote machine, please ensure that it accepts remote requests by checking the value of hkey_local_machine\system\currentcontrolset\services\aspnet_state\parameters\allowremoteconnection.

解決方法:

在”開始菜單→管理→服務”裡面啟動asp.net state server。啟動成功的話,應該能在任務管理器中看到下圖所示

在win2003上IIS部署可能出現的問題的解決方案一、在IIS上部署運作多個版本的ASP.NET Framework二、.NET 4.0 IIS伺服器報錯Unable to find messages file 'cscui.dll

本文版權歸作者所有,歡迎轉載,但未經作者同意必須保留此段聲明,且在文章頁面明顯位置給出原文連接配接,否則保留追究法律責任的權利。

轉載:http://www.cnblogs.com/kissazi2/archive/2013/03/11/2954650.html

繼續閱讀