windows server2012R2 上 .net core IIS 部署--应用程序池 自动停止

在windows server2016安装部署.NET CORE时,只需要将.net core应用程序池设置无托管,然后对应你项目的版本安装一个dotnet-hosting-2.2.6-win.exe就可以运行你的core项目了,

 

但是近期,我再windows server2012R2 部署.NET CORE时,按照windows server2016的方式,发现.net core程序无法运行,此时默认的.net 的default的localhost:80静态也无法访问了,发现应用程序池关闭。

我启动应用程序池,再次加载web页面。此时应用程序池再次关闭,自动停止。我看了windows server2012R2的系统日志,说我的dotnetV2 module xxxx 错误。

 这个让我百思不得其解,我安装了.net 1.0  、 2.0、3.5等版本,总之各种环境都试了,还是不行。

 

最后,我安装一个软件net core runtime基于vc_redist.x64运行的,所以也就出现了此类错误需要安装vc_redist.x64才能在iis上运行netcore项目

  vc_redist.x64下载地址: https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=48145

安装vc_redist.x64.exe   可能出现无法安装,错误如下:

 

 

这是由于windows server2012 R2需要安装补丁

 这些 KB 必须按以下顺序安装:(clearcompressionflag.exe、KB2919442、KB2919355、KB2932046、KB2959977、KB2937592、KB2938439、KB2934018)  安装过程中需要多次重启生效。
在安装vc_redist.x64.exe) 

最后在安装dotnet-hosting软件即可。

 

posted @ 2020-06-16 15:40  畅聊科技  阅读(2672)  评论(0编辑  收藏  举报