Search

FatalExecutionEngineError with ASP.NET MVC4 after installing KB2769165 by Tomi Junnila

Closed
as Fixed Help for as Fixed

1
0
Sign in
to vote
Type: Bug
ID: 771929
Opened: 11/22/2012 2:43:33 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
After installing KB2769165, ASP.NET MVC4 applications have started getting FatalExecutionEngineErrors (error code 0xc0000005) when loading the first page - VS2012 shows the exception being thrown from AreaRegistration.RegisterAllAreas() called from Application_Start.

Commenting out the RegisterAllAreas call causes the same error to be thrown somewhere between Application_Start (which does return) and the controller action. The only location on the call stack at the time of the error is mscorlib.dll!System.Reflection.RuntimeModule.GetTypes() + 0x14 bytes.

This applies even with new MVC4 applications based on the Internet Application and Basic templates (probably any MVC4 application, really).

I get the same results on two different computers, one running Windows 8 Pro and the other one running Windows 8 Enterprise (on dissimilar hardware). The error shows up both when using IIS8 Express and the Visual Studio Development Server, and both when debugging or simply running the application without debugging.

The only workaround I have found is to uninstall and block KB2769165, which this works perfectly repeatably.
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

.NET Framework 4.5

Steps to reproduce

1. Create ASP.NET MVC4 project using the Basic template (C# and Razor), add a simple HomeController with the Index action simply returning a View with nothing but the defaults in. (The HomeController and Views/Home/Index.cshtml aren't needed unless RegisterAllAreas is commented out. Of course, in the "ok" case, one would then get a 404 error in steps 2 and 6.)
2. Run the project and view the Home/Index page in a browser. This should work ok.
3. Install KB2769165
4. Run the project and view the Home/Index page in a browser. The above error should be thrown.
5. Uninstall KB2769165
6. Run the project and view the Home/Index page in a browser. This should work ok.

Product Language

English

Operating System

Windows 8

Operating System Language

English

Actual results

After installing KB2769165, viewing the Home/Index page will result in the error:

FatalExecutionEngineError was detected
Message: The runtime has encountered a fatal error. The address of the error was at 0x73d61d7e, on thread 0x5c. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

And the exception that is thrown and not subsequently handled is:

System.ExecutionEngineException was unhandled
HResult=-2146233082
Message=Exception of type 'System.ExecutionEngineException' was thrown.
InnerException:

Expected results

The contents of the Home/Index page, i.e. a simple <h2>Index</h2> from the default page stub.
File Attachments
0 attachments
Sign in to post a comment.
Posted by MGossling on 3/7/2013 at 10:49 AM
I have also just purchased a brand new PC running windows 8, based on the i7 processor family built by Lenovo.
In going a full system update to bring it up to speed for the first time I had to load up numerous Microsoft updates (around 40), but KB2769165 will just not load up at all and as it is flagged as an important update, I do not want to ignore it. I have tried everything I can think of and memory is not an issue as I have effectively an empty 2T drive and 16G ram. This comment chain is the only reference I can find to this problem, hence my request for any help or an update fix!
Currently the update will now not even allow me to select it so I can not run a screen grab for you.
Posted by Tomi Junnila on 3/5/2013 at 12:34 PM
Ok, I now managed to get one of the original two computers working enough to install KB2769165 on it, and I can't reproduce the issue on it either. As with the new computer from the previous comment, the computer has, in the interim, been updated to VS2012 Update 1 and all updates available from Windows Update, so I cannot say which of these has resolved the issue. (The other original computer no longer exists, so I can't test it.)
Posted by Tomi Junnila on 3/5/2013 at 12:15 PM
After posting the previous comment, I remembered that I just got a new computer on Friday, and while I'd installed VS2012 Update1 (plus Windows 8 Enterprise, 64-bit) on it, I hadn't blocked KB2769165 on it so it was installed.

I went through steps 1 & 2 above, and wasn't able to reproduce the issue. Thus, the issue may have been resolved by VS2012 Update 1 or one of the Windows Updates between KB2769165 and today.
Posted by Tomi Junnila on 3/5/2013 at 12:05 PM
I was using 64-bit Windows 8 (on both machines, though one was Pro and the other one was Enterprise), but back in November, Update 1 to VS 2012 wasn't out yet so I had "plain" VS 2012 (Ultimate) back then.

At this moment, I'm experiencing other problems that prevent me from trying KB2769165 again. I'll give it a try when I resolve those, so I can see if the problems occur for me with Update 1 as well.
Posted by Microsoft on 3/5/2013 at 11:57 AM
Hi, I have tried this on Win8(64bit) and VS 2012 Update1 and unable to repro this issue. Could you give us more details as to which versions of OS and Visual Studio are you using?
Posted by Microsoft on 11/22/2012 at 11:57 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Microsoft Visual Studio Connect Support Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 11/22/2012 at 2:49 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.