在win2003上IIS部署可能出现的问题的解决方案

在win2003上IIS部署可能出现的问题的解决方案

一、在IIS上部署运行多个版本的ASP.NET Framework

在浏览器中,请求失败的错误提示信息:

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服务器请求失败的具体错误原因,可以在事件查看器中找到。请检阅应用程序日志来找出是什么导致了这个错误的发生。

1

我们会发现在事件查看器中这个错误的 Event ID为1062,下面是错误的具体信息:
“在同一 IIS 进程中不可能运行两个不同的 ASP.NET 版本。请使用 IIS 管理工具重新配置服务器以在一个单独的进程中运行应用程序。”
2

错误原因

假设一台服务器上需要部署.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版本。请参照下面的操作步骤进行应用池的创建和转移。

4

5

 

二、.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 

 

解决办法:如下图所示,进行操作

6

三、在发布ASP.NET网站的时候,出现state server错误

错误的原因:

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。启动成功的话,应该能在任务管理器中看到下图所示

7

转载于:https://www.cnblogs.com/kissazi2/archive/2013/03/11/2954650.html

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/110195.html原文链接:https://javaforall.cn

【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛

【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...

(0)
blank

相关推荐

发表回复

您的电子邮箱地址不会被公开。

关注全栈程序员社区公众号