简体   繁体   English

.Net MVC 4 项目失败并显示事件日志错误“模块 DLL C:\\WINDOWS\\system32\\inetsrv\\aspnetcore.dll 无法加载。 数据就是错误。”

[英].Net MVC 4 Project fails with Event Log Error “The Module DLL C:\WINDOWS\system32\inetsrv\aspnetcore.dll failed to load. The data is the error.”

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:这不是 DotNetCore 项目(它是 MVC 4 项目)并且应用程序池已正确配置为使用 dotnet CLR v4,但在更新到新版本的 Windows 10 之后(无论是内部版本还是新的周年更新),启动应用程序失败,事件日志显示以下错误:

The Module DLL C:\\WINDOWS\\system32\\inetsrv\\aspnetcore.dll failed to load.模块 DLL C:\\WINDOWS\\system32\\inetsrv\\aspnetcore.dll 加载失败。 The data is the error.数据就是错误。

I don't have any need for aspnetcore.dll yet.我还不需要aspnetcore.dll。 And removing references to the DLL for the site in IIS doesn't solve the problem.在 IIS 中删除对站点 DLL 的引用并不能解决问题。 Any Tips?任何提示?

Here's the easiest solution:这是最简单的解决方案:

  1. Search Cortana for Programs and Features to open the legacy Control Panel's installed applications list.在 Cortana 中搜索Programs and Features以打开旧版控制面板的已安装应用程序列表。
  2. Find and click the entry for Microsfot .NET Core 1.0.0 - VS 2015 Tooling ...查找并单击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我的版本是“Preview 2”...不过如果他们不解决这个问题,你可能有一个更新的版本
  3. Click Change.单击更改。
  4. Click Repair.单击修复。

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.这个问题的根源似乎是 Windows 10 的构建升级过程,在那里它重新安装了 IIS……当它把所有站点设置复制到新的 applicationHost.config 时,它似乎破坏了你的任何非标准模块以前安装过。 For example, this same problem also affects the URL Rewrite 2 module (which is also fixed by running a repair).例如,同样的问题也会影响 URL Rewrite 2 模块(也可以通过运行修复来修复)。

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 ).希望球队在微软谁在维护构建更新的IIS配置工作将有机会解决这个问题(他们在github上跟踪这个bug在这里)。 Until then, you have to do this repair after installing any new Windows builds.在此之前,您必须在安装任何新的 Windows 版本后进行此修复。

UPDATE: This bug has been fixed in Windows 10 Insider Build 15002, and will be released as part of the Windows 10 Creators Update on April 11, 2017. So, once you've solved this by following the steps above, you shouldn't run into it again with the next major Windows 10 update.更新:此错误已在 Windows 10 Insider Build 15002 中修复,并将于 2017 年 4 月 11 日作为 Windows 10 创意者更新的一部分发布。因此,一旦您按照上述步骤解决了此问题,您就不应该在下一个主要的 Windows 10 更新中再次遇到它。

Download the DotNetCore.1.0.0.RC2-SDK.Preview1-x64.exe, execute and uninstall.下载DotNetCore.1.0.0.RC2-SDK.Preview1-x64.exe,执行卸载。 After, go to Programs and Features e Repair the Microsoft.NET Core 1.0.0 RC2 - VS 2015 Tooling Preview 1. Work for me.之后,转到程序和功能 e 修复 Microsoft.NET Core 1.0.0 RC2 - VS 2015 Tooling Preview 1。为我工作。

I too faced the same issue.我也面临同样的问题。 As a workaround, I marked Enable 32-Bit Application as false in application pool.作为一种解决方法,我在应用程序池中将启用 32 位应用程序标记为false

For more details, please check at below link https://github.com/aspnet/Home/issues/1583有关更多详细信息,请查看以下链接https://github.com/aspnet/Home/issues/1583

Issue has been solved after copy aspnetcore.dll复制aspnetcore.dll后问题已解决
From:来自:
C:\\Windows.old\\Windows\\SysWOW64\\inetsrv C:\\Windows.old\\Windows\\SysWOW64\\inetsrv
Into:进入:
C:\\Windows\\SysWOW64\\inetsrv C:\\Windows\\SysWOW64\\inetsrv

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法从C:\\ Windows \\ System32 \\ inetsrv \\ hwebcore.dll引用hwebcore.dll到visualstudio2013 - Can't able to refer the hwebcore.dll from C:\Windows\System32\inetsrv\hwebcore.dll to visualstudio2013 ASP零:System.IO.FileNotFoundException:找不到文件'c:\\ windows \\ system32 \\ inetsrv \\ log4net.config' - ASP Zero :System.IO.FileNotFoundException: Could not find file 'c:\windows\system32\inetsrv\log4net.config' File.Move错误-System.IO.FileNotFoundException:找不到文件'c:\\ windows \\ system32 \\ inetsrv - File.Move Error - System.IO.FileNotFoundException: Could not find file 'c:\windows\system32\inetsrv 访问路径 'c:\windows\system32\inetsrv\config\' 被拒绝 - Access to the path 'c:\windows\system32\inetsrv\config\' is denied 无法将“C:\Windows\System32\shdocvw.dll”添加到我的项目中 - Cannot add “C:\Windows\System32\shdocvw.dll” to my project 如何使用c#asp.net获取C:\\ Windows \\ System32 \\ inetsrv \\ config文件夹的访问控制 - How to get access control of C:\Windows\System32\inetsrv\config folder using c# asp.net Unity3d游戏内插件无法加载system32 dll - Unity3d ingame plugin fails to load system32 dll 找不到文件 'c:\\windows\\system32\\inetsrv\\xxx.xlsx' - Could not find file 'c:\windows\system32\inetsrv\xxx.xlsx' WebClient下载-“拒绝访问路径'c:\\\\ windows \\\\ system32 \\\\ inetsrv \\\\ MyPrintManager.exe'” - WebClient Download - “Access to the path 'c:\\windows\\system32\\inetsrv\\MyPrintManager.exe' is denied” 收到 DirectoryNotFoundException: c:\\windows\\system32\\inetsrv\\Static_Files 当应用程序移动到实时服务器时 - Received a DirectoryNotFoundException: c:\windows\system32\inetsrv\Static_Files When application was moved to a live server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM