设为首页 收藏本站
查看: 1278|回复: 0

[经验分享] 在win2003上IIS部署可能出现的问题的解决方案

[复制链接]

尚未签到

发表于 2015-8-13 12:08:33 | 显示全部楼层 |阅读模式
一、在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服务器请求失败的具体错误原因,可以在事件查看器中找到。请检阅应用程序日志来找出是什么导致了这个错误的发生。
DSC0000.png
  我们会发现在事件查看器中这个错误的 Event ID为1062,下面是错误的具体信息:
"在同一 IIS 进程中不可能运行两个不同的 ASP.NET 版本。请使用 IIS 管理工具重新配置服务器以在一个单独的进程中运行应用程序。"     
DSC0001.png
  错误原因
  假设一台服务器上需要部署.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版本。请参照下面的操作步骤进行应用池的创建和转移。
DSC0002.png
DSC0003.png

二、.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
  
  解决办法:如下图所示,进行操作
DSC0004.jpg
三、在发布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。启动成功的话,应该能在任务管理器中看到下图所示
DSC0005.png

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-98447-1-1.html 上篇帖子: iis 部署网站常见问题 下篇帖子: vs2010 未能连接到http...出现以下错误: 无法创建网站http...若要访问本地 IIS 网站,必须安装下列 IIS 组件:IIS 6 元数据库与
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表