title: Visual Studio crashes when opening solution: Rejecting native image because dependency is not native
body: <p>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.</p>
  
  <p>During the upgrade process I did not notice any issues and it runs fine in production.</p>
  
  <p>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.</p>
  
  <p>The Application Event Log shows this:</p>
  
  <blockquote>
    <p>.NET Runtime version 2.0.50727.3607 -
    Fatal Execution Engine Error
    (7A036050) (80131506)</p>
  </blockquote>
  
  <p>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, <a href="http://www.microsoft.com/downloads/en/details.aspx?familyid=6c095bba-6100-4ec9-9c54-6450b0212565&amp;displaylang=en" rel="nofollow noreferrer">found here</a>.</p>
  
  <p>After installing the updates, it appeared to work fine.</p>
  
  <p>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".</p>
  
  <p>I took my problem solving to the next step and ran WinDbg against VS, while opening the solution. Here is what I got:</p>
  
  <blockquote>
    <p>CLR:(C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll)
    Rejecting native image because
    dependency
    C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll
    is not native</p>
  </blockquote>
  
  <p>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.</p>
  
  <p>Anyone have any suggestions on where I should go from here?</p>
  
  <p>Thanks.</p>