-
Notifications
You must be signed in to change notification settings - Fork 224
Failed to initalize runtime (80131522) on Beta6/Beta7 x64 #2343
Comments
I think this might be related. I build a simple MVC project, compiles fine for Beta5, and I get this error:
Noral |
Some more information: On clean installation of: I am able to compile both Beta6 and Beta7. |
I get the same error when deploying to an Azure web site via GitHub. It's a one-page MVC app that works and deploys to Azure just fine using beta 5. I changed all instances of "1.0.0-beta5" to "1.0.0-beta6" in global.json and project.json. Global.json specifies "clr" and "x64". Azure website is set to x64. Project builds and runs fine locally (on OS X). Here's the log file from the Azure deploy:
|
@danroth27 do you have any insights/thoughts to why this is happening? |
Sorry @danroth27 - I initially thought about sending this to you since you are on MVC but you were not a contributor on dnx. I had already copied your name to the clipboard when I thought I had copied @davidfowl since he is on both projects. Guess I needs better proofreaders. David - do you have any insights/thoughts to why this is happening? |
Hello ... anyone? |
Installed beta7-12302 clr x64 on the Windows 7 Enterprise machine and I am still getting:
Thoughts? |
@NoralK - can you turn on tracing ( |
Here you go:
These directories Microsoft DNX on down and the file index.txt are not in C:\Program Files (x86) nor in C:\Program Files. It should be noted that on Windows 8.1, where it does work, these are also not present. |
This does not seem to be beta7 - can you show the output of |
It is beta7. Here is the output:
I have tried cleaning out all runtime, on another machine, and get the same output with just 1.0.0-beta7-12302. |
Thanks. I need one more thing (hopefully the last one) - what does it show when you do |
Here you go:
Thank you for the help. |
Take a look at this separate issue - dotnet/Scaffolding#106 at the dump from setting DNX_TRACE=1. Dnx also has the issue, but on Windows 8.1 (where issue #106 occurs) I can run dnu and dnx without "Failed to initalize runtime (80131522)". |
Do you actually have .NET Framework 4.5.1 installed on your Windows 7 box? |
From the #106 error I found this reference: |
I have .Net Framework v4.5.2 installed on both Windows 7 (having issue) and Windows 8.1. |
You don't need to worry about missing |
From my initial post I listed all of my steps - Window 7 Enterprise x64 has no patches, except what IE 11 installed. |
Good news: I was able to reproduce this issue. |
I installed .NET Framework 4.6 (http://www.microsoft.com/en-us/download/details.aspx?id=48130) and this fixed the issue. @NoralK Can you try this and let me know if it works for you? |
I installed .Net 4.6 and I can launch dnu and dnx. Does this mean the requirements will change or will this be investigated further? |
Thanks for confirmation. I am glad it is now working. At this point the issue seems to affect only Windows 7 x64. IIS hosted apps are not impacted by this. I guess if people hit this the workaround will be to either upgrade to .NET Framework 4.6 or run the app with the x86 runtime. /cc @danroth27 @davidfowl |
If that is the case then I would suggest that the Readme.md in all the projects should reflect the minimum .Net version as 4.6. Maybe the root of the problem can be fixed eventually. |
I'm getting this error deploying a beta 6 asp.net site to Azure Web Apps (details earlier in this thread). That's IIS-hosted and (presumably) not Win 7. Does this mean I need to wait for Azure to put .net 4.6 on those machines? |
We should definitely make sure we work without .NET 4.6 installed, @moozzyk was just providing a possible workaround. Obviously there is a bigger issue to resolve here given than Azure only provides earlier versions of .NET |
@jtbennett - I suspect that the issue was introduced in this change 05ee5b3 where we changed the way we load the domain manager. However in case of IIS hosted apps we don't bootstrap CLR ourselves and therefore this code is not executed. I believe that in your case this is not the app itself that fails but one of the steps in the deploy.cmd script is using |
Fixed in 31093b2 |
@moozzyk As of beta7-12321 the problem still persists with .Net Framework v4.5.2:
Was your commit in this build? Can we keep the ticket open until both of us have resolution. I also just noticed this - can the spelling of "initalize" be changed to "initialize". |
No the build with the fix is not out there yet. I will fix the spelling next time I touch this code - thanks for pointing this out. |
@NoralK - this issue is fixed in 12325 |
I can confirm that beta7-12325 does solve the issue - obviously it will not be solved on beta6. @jtbennett - I am not using Azure Web Apps so I cannot comment on that. |
Thanks for confirmation @NoralK. You are correct beta6 won't be fixed. @jtbennett - stay tuned for beta7 or use the unstable feed. |
Thanks! Will give beta 7 a try when it's released.
|
My app works locally, and I had this issue on the server after publishing the app but after installing 4.6 i get CS1703: multiple assemblies with equivalent identity have been imported. However it works fine locally. Any Ideas? |
Just confirming that beta 7 works on Azure web apps. It got hung up deleting a DLL that was in use (Microsoft.AspNet.FeatureModel -- one of those that was renamed/removed, I think). Stopping the app, deploying, and restarting worked. I'll use this comment inappropriately to complain about the undocumented steps upgrading to beta7 -- having to remove the Kestrel dependency in project.json and to rename Microsoft.AspNet.Runtime namespace to Microsoft.Dnx.Runtime in my Startup.cs. :) Thanks for the great work -- can't wait for it to ship! |
@jtbennett - you can find information on breaking changes in the Announcement repo: |
(Thanks for confirming that the error was fixed) |
Aha! Thanks for the pointer. Didn't know about the announcement repo. :)
|
I received this error on a new clean installation.
Windows 7 Enterprise x64 - SP1 VM with UAC turned off (NO PATCHES)
.Net v4.5.2
PowerShell v4.0 x64
Internet Explorer 11 x64 with the patches it installs
Node.js v0.12.7 x64
VS Code v0.5.0
Environment Variable
Installed DNVM
Installed Beta6 x64 package by:
DNVM List
closed command prompt
opened command prompt
However, if I do the following:
DNVM List
I can run dnu for x86. Did I miss something?
The text was updated successfully, but these errors were encountered: