问题描述
这是不是一个DotNetCore项目(这是一个MVC 4项目)和应用程序池被正确配置为使用的dotnet CLR v4的,但升级到Windows 10的新版本后(无论是内部人士打造,或新的周年更新),启动应用程序失败,事件日志显示了以下错误:
This is not a DotNetCore project (it's an MVC 4 project) and the app pool is properly configured to use dotnet CLR v4, yet after updating to a new version of Windows 10 (be it an insider build, or the new Anniversary Update), starting the app fails and the event log shows the 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.
我没有任何需要aspnetcore.dll呢。而对于在IIS中的网站中删除该DLL引用不解决问题。任何提示
I don't have any need for aspnetcore.dll yet. And removing references to the DLL for the site in IIS doesn't solve the problem. Any Tips?
推荐答案
最简单的方法:
- 搜索柯塔娜为
程序和功能
来打开传统控制面板的安装的应用程序列表。 - 找到并单击该条目
Microsfot .NET核心1.0.0 - 2015年VS工具...
- 的我的版本是预览2...虽然如果他们不解决这个问题,你可能有一个较新版本的
- Search Cortana for
Programs and Features
to open the legacy Control Panel's installed applications list. - Find and click the entry for
Microsfot .NET Core 1.0.0 - VS 2015 Tooling ...
- My version is "Preview 2"... though if they don't fix this, you may have a newer version
这问题的根源似乎是版本升级对于Windows 10,它的过程重新安装IIS ...而它复制了所有的站点设置新的applicationHost.config,它似乎打破你以前安装的任何非标准模块。例如,同样的问题也影响URL重写2模块(其也被固定通过运行一个修复)。
The source of this problem seems to be the build upgrade process for Windows 10, where it re-installs IIS... while it copies over all the site settings to the new applicationHost.config, it seems to break any non-standard modules you previously had installed. For example, this same problem also affects the URL Rewrite 2 module (which is also fixed by running a repair).
希望球队在微软谁在维护构建更新的IIS配置将有机会来解决这个问题(他们正在追踪在github上的)。在那之前,你必须安装任何新的Windows建立以后做这种修复。
Hopefully the team at Microsoft who works on maintaining the IIS config between build updates will get a chance to fix this (they're tracking this bug on github here). Until then, you have to do this repair after installing any new Windows builds.
这篇关于.NET MVC 4项目失败,事件日志错误"模块的DLL C:\WINDOWS\system32\inetsrv\aspnetcore.dll加载失败。该数据是错误"。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!