-
Notifications
You must be signed in to change notification settings - Fork 10.3k
aspnetcore.dll failed to load #597 #1583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Opened on behalf of @teovc. |
@teovc there should be more details bellow "The data is the error." in the event log. |
The error indicates the 32-bit AppPool is trying to load 64-bit aspnetcore.dll. could you please share the file info "C:\Windows\System32\inetsrv\aspnetcore.dll" and "C:\Windows\SysWOW64\inetsrv\aspnetcore.dll" |
The file looks correct. I installed the same version MSI as yours on a Win 10 box and worked. Something wrong with your machine configuration. Could you please share your applicationhost.config and web.config. |
The dlls work, the problem happens when a new version of the OS is installed as part of Self-hosting experience. |
That web.config is not the one you used for ASP.NET Core application as it does not contain any ASP.NET Core Module setting. Could you please try uninstall ASP.NET Core bundle and then reinstall it after OS upgrade to see whether it helps? |
could you please share applicationhost.config under C:\Windows\System32\inetsrv\config. This file is IIS configuration file and specify the path of aspnetcore.dll. |
I'm going to try that option. In the meantime, here is the applicationhost.config file. Please, be aware that the solution so far (repair or remove / install) takes some time that people is losing. Individuals outside to the organization might not be too much affected by the issue since the rate of OS updates is less frequently that someone inside the organization. Thanks. |
same question to me |
Just wanted to add in that I just ran into this issue. |
I want to run old application in 32bit mode |
Hi all, |
Under VS2015 - Update 2, the solution/projects works fine but when I upgraded to VS2015 - Update 3, along with extensions updates, I ran into this issue. So, something is different that broke the solution/projects. All of the projects are under .NET v4.6 frameworks, there's no .NET core projects/solution here. Few days later, when I cloned the source code from TFS, it then works with no evidence of error. Strange. That doesn't make sense either. |
Just want to add I run into this issue every time a new Insider build of Windows 10 comes out. I end up having to uninstall/re-install .Net Core every time. If this isn't fixed before the Anniversary Update launches on Aug 2, there are going to be a lot of confused devs out there. |
Same issue upgrading from Win 8.1 to Win 10. |
Only had to run the 'repair' to get it to work again. I didn't have to do the full uninstall/install. But I just updated to the Anniversary Update and was a little upset that I ran into this issue right off the bat. |
Same here after updating to the anniversary update... |
Running a Repair on Microsoft .NET Core 1.0.0 - VS 2015 Tooling Preview 2, plus a reboot, also worked for me after installing the anniversary update. |
Confirmed this worked for me on Build 14393. Installed Tooling Preview 2 from https://www.microsoft.com/net/core#windows |
Thanks, running a repair and re-starting the application pool solved this issue for me. The issue started after the "Anniversary Update". |
Same issue here - broken after Windows 10 Anniversary Update - i.e. new OS update breaks it. |
On my box This is about as far from the benefits of "isolated xcopy deploy per app" as I can think of: OS update breaks all web apps on the developer's computer. |
I had the additional problem of not being able to Repair or Uninstall Core Tooling Preview 2 (the "account already exists" error). Doing a Repair on VS 2015 seems to have fixed the aspnetcore.dll failing to load problem. |
This worked for me. |
Same problem and resolution here. Just repaired .NET Core 1.0.0 RC2, Tooling Preview 1. |
@BryanTheCrow this does not reproduce on all machines. I have two that update weekly that this hasn't happened on. |
@Tratcher Interesting. Let's try to nail down the difference. On those machines that update builds recently, do you also:
|
1 yes, 2 yes, 3 no - I primarily test core sites. 4 no. |
@BryanTheCrow If you can reproduce the issue, would you gather the information I asked above? And please observe how the aspnetcore.dll file is changed before/after upgrading OS. In order to observe that, you will need to check if your machine has both %windir%\system32\inetsrv\aspnetcore.dll and %windir%\syswow64\inetsrv\aspnetcore.dll before upgrading OS and write down the file size. And then compare it after upgrading OS. |
@Tratcher Pretty sure this only affects 32bit dotnetcore.dll. I wonder if you switched one of your site's iis app pools to 32bit if you could reproduce on one of those machines? If not, the regular mvc app may be a requirement. @jhkimnew I wasn't planning on running insider builds again for a few months (I like to wait until the new features are out and things aren't so unstable). While it's easy to reproduce by doing what I laid out above, it does take a few hours to go through the set up installations and I don't really have time right now. As you appear to be the one researching a fix, I just assumed you'd like to reproduce for yourself. If not, the next time I do install a new build, I'll check back in to see if nobody else has reproduced & will post responses to all your questions above. |
@BryanTheCrow What is dotnetcore.dll? Maybe typo for aspnetcore.dll? |
@jhkimnew Yes, sorry... typing quickly off memory. My mistake. Sorry my memory is a little fuzzy as I didn't explicitly try to install ASP.Net Core. It came with one of the other updates or maybe even with the initial install of VS2015. I don't think it matters how you install it, just that you install it... That said, here are the steps as I remember them... many of these steps may not be necessary to reproduce, but in the interest of being complete I'll include them:
At that point, the only step needed to reproduce for me was to go through the windows update process to upgrade to a new build. After updating, I'd get errors trying to load both the DotNetCore module and the URLRewrite module, killing the app pool when first trying to load a page. Running a repair on both in "Add/Remove Programs" fixes them. |
Here's my current IIS Log. I'm not 100% certain, but I believe I did a clean install of 1607 when it came out and re-configured from scratch, so I'm not sure this will be helpful. |
I wonder if it's worth looking at %windir%\Windowsupdate.log to see if there's any traces showing what the upgrade modified on the machine. IIS is an OS feature, so it's possible that upgrading the OS could impact that and may not necessarily honor additional items that were installed, like ANCM. |
@joeloff that certainly seems to be what's happening here as it affects URLRewrite 2.0 too. Modules installed via "Turn Windows Features On / Off" have no problem. But something in the build update process appears to kill some, but not all, modules, when trying to use them in a 32bit app pool. |
@BryanTheCrow Okay, I found a consistent repro step with following your repro steps. Thanks a lot for your help. I was able to reproduce this issue with my machine. When this issue happens, the aspnetcore.dll on %windir%\syswow64\inetsrv directory is gone after upgrading OS. |
@jhkimnew Glad to hear it. Hopefully it'll turn out to be something simple. 👍🏻 |
Seems like IIS needs a better error message with the correct file path! :) |
I had this on non-Insiders Windows 10 Anniversary. Reinstalling aspnet core did not fix it, but uninstalling every aspnet core item from Programs and Features did. Seems like this is breaking real production machines - I lost several hours trying to fix this while I was supposed to be doing urgent work. I don't believe I even chose to put preview stuff on my production machine; VS did it? |
@DanTup Yes, any windows 10 build update triggers this (anniversary update included). The insider updates are just the easiest way to reproduce for those who're already on 1607 as they come out with a new build weekly, vs bi-annually. Repairing "Microsoft .NET Core 1.0.1 - VS 2015 Tooling Preview 2" via "Programs and Features" fixes it without needing to uninstall every item (though, that will work too). |
@BryanTheCrow It's concerning that such a critical bug has been known about for months and is affecting production machines (and from the tweet I had from @shanselman I'm not even sure if the aspnet team realise it's affecting non-Insiders! I replied but got no response..). Repair did not seem to work for me; tried several times including reboots :-( My faith in the quality of code from MS sinks every month; we spend more time than ever fighting issues that aren't our own and nobody seems to care :-/ |
Thanks to all the folks who reported the issue. Root causeThere is a bug in the IIS upgrade path. Non-OS files in the When do I encounter this issue?If you had any of the aforementioned modules installed prior to your OS upgrade and then try to run any Application Pool in 32-bit mode after your OS upgrade. What's the work around?Repair all the modules what were clobbered during your OS upgrade. How do I know what modules are missing?You should see an error raised in the Event viewer
When will you actually fix it?
This issue has been fixed in Windows Insider Build 15002 |
Worth pointing that even though the error message reads "The Module DLL |
@GMZ Sounds like your worker process has not been restarted after re-enabling 32 bit support. Try to force the AppPool recycle and you should still see this issue persist. |
https://www.microsoft.com/net/core#windows |
This issue has been fixed in Windows Insider Build 15002 |
- Doesn't consume new feature interfaces yet.
Every time a new build is installed, the system stops loading correctly the dll aspnetcore.
Error message in "Event Viewer":
The Module DLL C:\WINDOWS\system32\inetsrv\aspnetcore.dll failed to load. The data is the error.
Log Name: Application
Source: IIS-W3SVC-WP
Level: Error
Relevant System information:
OS Name: Microsoft Windows 10 Enterprise Insider Preview
OS Version: 10.0.14366 N/A Build 14366
OS Manufacturer: Microsoft Corporation
OS Configuration: Member Workstation
OS Build Type: Multiprocessor Free
Product ID: 00359-80000-00001-AA999
Original Install Date: 6/16/2016, 6:37:31 AM
System Boot Time: 6/16/2016, 6:11:50 AM
System Manufacturer: Hewlett-Packard
System Model: HP Z420 Workstation
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 45 Stepping 7 GenuineIntel ~3201 Mhz
BIOS Version: Hewlett-Packard J61 v03.06, 3/27/2013
Windows Directory: C:\WINDOWS
System Directory: C:\WINDOWS\system32
Boot Device: \Device\HarddiskVolume1
System Locale: en-us;English (United States)
Input Locale: en-us;English (United States)
Time Zone: (UTC-08:00) Pacific Time (US & Canada)
Total Physical Memory: 16,307 MB
Available Physical Memory: 7,019 MB
Virtual Memory: Max Size: 19,251 MB
Virtual Memory: Available: 6,503 MB
Virtual Memory: In Use: 12,748 MB
Page File Location(s): C:\pagefile.sys
Hotfix(s): N/A
Network Card(s): 1 NIC(s) Installed.
[01]: Intel(R) 82579LM Gigabit Network Connection
Hyper-V Requirements: VM Monitor Mode Extensions: Yes
Virtualization Enabled In Firmware: No
Second Level Address Translation: Yes
Data Execution Prevention Available: Yes
The text was updated successfully, but these errors were encountered: