title: Can't open my dbml file in Visual Studio 2010 anymore
body: <p>I've been working on a project for a while now. I hadn't touched it in a bit and when I came back to it and tried to open the dbml file, I'm getting this error.</p>
  
  <blockquote>
    <p>The 'Microsoft.VisualStudio.Data.Providers.SqlCompact.VsPackage,
    Microsoft.VisualStudio.Data.Providers.SqlCompact, Version=4.0.0.0,
    Culture=neutral, PublicKeyToken=89845dcd8080cc91' package did not load
    correctly.</p>
  </blockquote>
  
  <pre><code>The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by running the application together with the /log parameter on the command line, and then examining the file 'C:\Users\Gary\AppData\Roaming\Microsoft\VisualStudio\10.0\ActivityLog.xml'.
  </code></pre>
  
  <p>After you click OK on that error, another pop-up appears and says, "Visual studio has encountered an unexpected error."</p>
  
  <p>I tried repairing Visual Studio 2010 and that didn't help, so I also uninstalled and reinstalled it. Still no luck. Anyone have any idea what's going on and how to fix it?</p>
  
  <p>Update: I started Visual Studio 2010 from the command prompt with the /log parameter and examined the log file that was generated. Seeing these errors.</p>
  
  <pre><code>&lt;entry&gt;
      &lt;record&gt;377&lt;/record&gt;
      &lt;time&gt;2011/08/03 20:30:38.399&lt;/time&gt;
      &lt;type&gt;Error&lt;/type&gt;
      &lt;source&gt;VisualStudio&lt;/source&gt;
      &lt;description&gt;SetSite failed for package [Microsoft.VisualStudio.Data.Providers.SqlCompact.VsPackage, Microsoft.VisualStudio.Data.Providers.SqlCompact, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91]&lt;/description&gt;
      &lt;guid&gt;{51DD7941-149C-412F-8583-04644B87305F}&lt;/guid&gt;
      &lt;hr&gt;80131522&lt;/hr&gt;
      &lt;errorinfo&gt;Could not load type 'Microsoft.VSDesigner.VSDesignerPackage.ICustomProviderAssemblyService' from assembly 'Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.&lt;/errorinfo&gt;
    &lt;/entry&gt;
    &lt;entry&gt;
      &lt;record&gt;378&lt;/record&gt;
      &lt;time&gt;2011/08/03 20:30:38.403&lt;/time&gt;
      &lt;type&gt;Error&lt;/type&gt;
      &lt;source&gt;VisualStudio&lt;/source&gt;
      &lt;description&gt;End package load [Microsoft.VisualStudio.Data.Providers.SqlCompact.VsPackage, Microsoft.VisualStudio.Data.Providers.SqlCompact, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91]&lt;/description&gt;
      &lt;guid&gt;{51DD7941-149C-412F-8583-04644B87305F}&lt;/guid&gt;
      &lt;hr&gt;80131522&lt;/hr&gt;
      &lt;errorinfo&gt;Could not load type 'Microsoft.VSDesigner.VSDesignerPackage.ICustomProviderAssemblyService' from assembly 'Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.&lt;/errorinfo&gt;
    &lt;/entry&gt;
  </code></pre>
  
  <p>And Googling on those <code>&lt;errorinfo&gt;</code> lines yields no results.</p>