在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


作者:kissazi2 
出处:http://www.cnblogs.com/kissazi2/ 
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

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

目录
相关文章
|
JSON IDE Devops
64位Windows 10下如何搭建CUNIT环境(下)
64位Windows 10下如何搭建CUNIT环境(下)
239 0
|
Windows
Win10的IIS服务器详细安装与配置
Win10的IIS服务器详细安装与配置
784 0
Win10的IIS服务器详细安装与配置
|
XML 文件存储 数据格式
迁移windows 2008 IIS7 WEB服务器
迁移windows 2008 IIS7 WEB服务器
125 0
迁移windows 2008 IIS7 WEB服务器
|
关系型数据库 MySQL PHP
Windows Server 2008,IIS7.5中配置(安装)PHP+MySql运行环境全程实录
一.安装前准备好要用到的文件 mysql-essential-5.1.40-win32.msi (MySql数据库安装文件) php-5.2.0-Win32.zip(PHP代码解析器) phpMyAdmin-3.
2738 0