由于无法加载aspnetcore.dll,IIS 10应用程序池不断停止

编程入门 行业动态 更新时间:2024-10-26 21:33:46
本文介绍了由于无法加载aspnetcore.dll,IIS 10应用程序池不断停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在IIS 10上本地托管了一个asp core 2.0.由于某些原因,DefaultAppPool在我访问托管网站后会立即停止. 而且我收到HTTP错误503.服务不可用.

I have an asp core 2.0 hosted locally on IIS 10. For some reason DefaultAppPool keeps stopping as soon as I hit the hosted website. And I am getting HTTP Error 503. The service is unavailable.

在事件日志中,我看到以下错误;

In event logs I see following error;

模块DLL C:\ WINDOWS \ system32 \ inetsrv \ aspnetcore.dll失败 加载.数据就是错误.

The Module DLL C:\WINDOWS\system32\inetsrv\aspnetcore.dll failed to load. The data is the error.

当我检查路径C:\WINDOWS\system32\inetsrv\时,我没有看到aspnetcore.dll存在.应该在那里吗?如果是,核心安装exe文件不应复制吗?

When I check the path C:\WINDOWS\system32\inetsrv\ I do not see aspnetcore.dll exists. Should it be there? If yes, core installation exe shouldn't be copy it?

以下是一些信息;

我尝试了什么但没有成功?

What I tried, and did not worked?

  • 对IIS AppPool进行故障排除崩溃
  • 已卸载的 core并已重新安装.
  • 将应用程序池标识更改为网络服务等.
  • 有什么主意我可以解决这个问题吗?

    Any idea how I can fix this?

    推荐答案

    要在IIS中托管.Net Core应用程序,应用程序池的.Net CLR版本应为无托管代码",如下面的屏幕快照所示.如果在下拉菜单中没有看到无托管代码"选项,则需要安装.Net Core Hosting Bundle.

    For hosting .Net Core applications in IIS, .Net CLR Version of application pool should be No Managed Code as shown in below screenshot. If you don't see "No Managed Code" option in in dropdown then you need to install .Net Core Hosting Bundle.

    更多推荐

    由于无法加载aspnetcore.dll,IIS 10应用程序池不断停止

    本文发布于:2023-11-16 10:16:19,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1603381.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:应用程序   加载   aspnetcore   dll   IIS

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!