I am working with a solution that contains an ASP.NET website and class library project. It has been working splendidly for years. In the past few months I upgraded it from VS 2005 and .NET 2.0 to VS 2008 and .NET 3.5.
During the upgrade process I did not notice any issues and it runs fine in production.
After pushing to production and leaving it alone for a bit, I finally went back to make some more changes. However, when I try to open it in VS 2008 it VS crashes. VS opens and acts like everything is OK, but, while loading, the VS window simply disappears.
The Application Event Log shows this:
.NET Runtime version 2.0.50727.3607 –
Fatal Execution Engine Error
I did some research which pointed me to a possible corrupt .NET install. This made no sense to me, since all of my other VS 2008 applications (6 others) opened and ran just fine in VS 2008. But, because I could not come up with another solution, I decided to install the latest updates for .NET 2.x and 3.x, found here.
After installing the updates, it appeared to work fine.
Here I am, a few weeks later, running into the same problem. I tried running the same .NET updates to see if that would resolve the issue again, but “no dice”.
I took my problem solving to the next step and ran WinDbg against VS, while opening the solution. Here is what I got:
Rejecting native image because
is not native
I assume that this is my problem, but I can’t figure out why. My other applications are using System.Web.Extensions 3.5 without issue.
Anyone have any suggestions on where I should go from here?
Thanks to Subhash Dike’s suggestion (delete all files in the bin folder), I stumbled on the problem. The bin folder contained a copy of the System.Web.Extensions.dll. I believe that this older DLL was overiding the web.config’s reference to the DLL in the GAC and breaking things.
So, after deleting the System.Web.Extensions.dll, I am now able to open the solution in Visual Studio 2008 and build it with no problem.
Answered By – Tod Birdsall
Answer Checked By – Terry (BugsFixing Volunteer)