Tuesday, 6 October 2009

Visual Studio 2008 SP1 crashes when switch to Design View

When switching to design view for an ascx control, Visual Studio would close without any warning. In the Application event log, is the error:

.NET Runtime version 2.0.50727.4016 - Fatal Execution Engine Error (72336028) (80131506)

With some reading aross similar problems I came across the following command line that seems to solve the problem by deleting the native images of managed assemblies.

The following command needs to be run from the Visual Studio 2008 command prompt.

ngen /delete *

No comments: