在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

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

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

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 企业微信机器人python脚本执行报错-‘errcode‘: 40008, ‘errmsg‘: ‘Warning: wrong json format. invalid message type

    企业微信机器人python脚本执行报错-‘errcode‘: 40008, ‘errmsg‘: ‘Warning: wrong json format. invalid message type错误内容{‘errcode’:40008,‘errmsg’:‘Warning:wrongjsonformat.invalidmessagetype,hint:[1596176563_47_d9bbe040d5a640ea75f8625e35783c76],fromip:61.183.117.38,moreinfoathttps://open.work.weixin.qq.com/devtool/query?e=40008’}查看官网错误代码意义40008 不合法

    2022年6月10日
    55
  • JS后退一页

    JS后退一页Javascript返回上一页:1.history.go(-1),返回两个页面:history.go(-2);2.history.back().3.window.history.forward()返回下一页4.window.history.go(返回第几页,也可以使用访问过的URL)例:向上一页response.Write(“”) response.W

    2022年7月25日
    14
  • 批量给图片重命名_图片快速重命名编号

    批量给图片重命名_图片快速重命名编号如果你是一名摄影师,又或者你是一名图片设计的工作人员,工作中肯定会面对很多图片文件,图片多了就需要进行整理,不然就很难区分和管理,就很不利于我们的使用。为了更好的整理往往我们就需要给图片进行重命名并且排序,这就出现一个问题了,如何批量重命名这些图片并且进行编号呢?如果你还不知道如何解决这个问题,那么你就要跟随小编的步伐,我来为大家详细介绍图片批量重命名编号的方法吧!需要使用的软件:优速文件批量重命名软件下载地址:免费下载优速文件批量重命名软件https://www.yososoft.com/do

    2025年9月12日
    5
  • ADB 环境变量配置教学

    步骤如下:1、右击电脑图标点击电脑属性2、找到相关设置点击高级系统设置3、找到高级点击环境变量4、在系统变量中点击双Path5、点击新建6、确定

    2022年4月9日
    88
  • vscode插件大全_vscode必装插件

    vscode插件大全_vscode必装插件Beautify#格式化htmljscss代码vscode-icons#文件图标PartialDiff#对比两段代码或文件Br…

    2022年9月27日
    3
  • java出现中文乱码_Java开发中中文乱码总结

    java出现中文乱码_Java开发中中文乱码总结1.jsp页面内容显示乱码这种乱码原因很简单,一般的工具或解码程序对中文字符解析时采用默认的解码方式:我们只需修改其编码方式即可,如下:字符集:UTF-8>GBK>GB23122.jsp与Servlet间跳转出现中文乱码2.1:method=”Post”jsp中form表单的ation=”XxxServlet”,method=”Post”时,提交表单后往往发现中文的属性值在Se…

    2022年7月8日
    17

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

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