在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

本文转自陈哈哈博客园博客,原文链接http://www.cnblogs.com/kissazi2/archive/2013/03/11/2954650.html如需转载请自行联系原作者


kissazi2

相关文章
|
1月前
|
存储 网络安全 数据安全/隐私保护
Windows Server 2019 IIS HTTPS证书部署流程详解
Windows Server 2019 IIS HTTPS证书部署流程详解
|
1月前
|
JavaScript Windows
VUE部署到IIS中报404错误解决方案-配置URL重写
VUE部署到IIS中报404错误解决方案-配置URL重写
|
1月前
|
Kubernetes 网络安全 Windows
要在云效部署到阿里云服务器上的 Windows Server 上的 IIS
【2月更文挑战第18天】要在云效部署到阿里云服务器上的 Windows Server 上的 IIS
163 4
|
3月前
|
Windows
IIS应用程序池崩溃的解决方案
IIS是微软开发的Web服务器软件,被广泛用于Windows平台上的网站托管。在使用IIS过程中,可能会遇到应用程序池崩溃的问题,原因可能有很多,包括代码错误、资源不足、进程冲突等。本文将为大家介绍IIS应用程序池崩溃的问题分析和解决方案。如果您在IIS的Events日志下观察到以下任一事件,那么本文适合您。
83 0
|
4月前
|
开发框架 安全 JavaScript
解密IIS服务器API跨域问题的终极解决方案
解密IIS服务器API跨域问题的终极解决方案
|
4月前
|
前端开发 JavaScript BI
云LIS云实验室信息管理系统源码,支持IIS独立部署,Docker部署
云LIS云实验室信息管理系统源码,支持IIS独立部署,Docker部署
55 0
|
9月前
|
存储 网络安全
IIS如何部署SSL证书
IIS服务器安装SSL证书
504 0
IIS发布程序,出现:请求的内容似乎是脚本,因而将无法由静态文件处理程序来处理解决方案
IIS发布程序,出现:请求的内容似乎是脚本,因而将无法由静态文件处理程序来处理解决方案
解决IIS Web部署 svg/woff/woff2字体找不到问题
最近项目中用到了fontawesome-webfont.svg等字体。部署项目后,发现没有<,+等符号,字体也不对,发现浏览器总是报找不到woff、woff2字体的错误。
210 0
解决IIS Web部署 svg/woff/woff2字体找不到问题
|
Linux iOS开发 MacOS
IIS10 部署网站报【HTTP 错误 500.19 - Internal Server Error】的解决办法
原有的 web 发布文件是可以正常部署 IIS10 上面运行的,由于本地电脑环境迁移,重新换了一个宿主机部署 IIS10,网站运行提示如下信息:HTTP 错误 `500.19 - Internal Server Error` 无法访问请求的页面,因为该页的相关配置数据无效。详细错误信息:模块 `IIS Web Core` 通知 `未知 处理程序 尚未确定 错误...
1474 0
IIS10 部署网站报【HTTP 错误 500.19 - Internal Server Error】的解决办法