title: VS2010 crashing then restarting after modifying EDMX
body: <p>I've created a RESTful app using Entity Framework 5.1.  It's been stable for a long time.  I recently added a table to my SQL 2005 database and tried adding it to the edmx file for the project.  The table shows up in the designer, but when I go to save the edmx, it causes VS2010 to shutdown then restart.  When it restarts, the table is in the designer, but there are no code templates in the Model.tt folder, and I get a ton of errors when I rebuild the project.</p>
  
  <p>When VS restarts, a system application exception is thrown by devenv.exe.  The first couple of lines are:</p>
  
  <blockquote>
    <p>Application: devenv.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.AccessViolationException
       at EnvDTE.ProjectItem.get_FileNames(Int16)
       at Microsoft.VisualStudio.TextTemplating489EEB6F04CC6591BD374BC5954BE8E5.GeneratedTextTransformation+EntityFrameworkTemplateFileManager+VsEntityFrameworkTemplateFileManager.ProjectSync(EnvDTE.ProjectItem, System.Collections.Generic.IEnumerable`1)</p>
  </blockquote>
  
  <p>Removing the added table doesn't fix the problem, only restoring the project from the previous night's backup gives me clean compiles.</p>
  
  <p>Nothing else seems to be wrong. Any hints or solutions would be appreciated.</p>