none
Bug? SSDT Designer Breaks EF EDMX Designer and Crashes Visual Studio with a Null Reference Exception RRS feed

  • Question

  • I've been able to reproduce this on 3 computers. One of them was a brand new fresh install of Win7, VS 2010 Professional (SP1), MSSQL 2012.

    I have a hard time believing that no one else has had this issue. This only started once we installed SSDT. To reproduce you need 2 projects (one being a new SSDT Database Project and the other any Project to contain an EF .edmx). Now create a new table definition script using the SSDT designer, save it, and publish it to the database. Immediately after this, switch to the other project and open an EF .edmx designer and run the 'Update Model from Database' feature. It will crash VS with a Null Reference Exception. The only other symptom I've also noticed is that the Entity Model Browser is completely gray (broken?) when you try to view the .edmx designer after making some SSDT changes.

    Edit - The crashes seem to correlate with this Windows Log Error (which I've read is somewhat related to VS Pro?)

    Edit - I added the EnableLog Registry Key to get a full dump.

    The description for Event ID 0 from source VSTTExecution cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    
    If the event originated on another computer, the display information had to be saved with the event.
    
    The following information was included with the event: 
    
    (devenv.exe, PID 5108, Thread 1) TuipPackage.InitializeTestProjectPlugins: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.CodedUITestPackage, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    File name: 'Microsoft.VisualStudio.QualityTools.CodedUITestPackage, PublicKeyToken=b03f5f7f11d50a3a'
       at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
       at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
       at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
       at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
       at Microsoft.VisualStudio.TestTools.Tips.TuipPackage.TuipPackage.InitializeTestProjectPlugins()
    
    === Pre-bind state information ===
    LOG: User = ET-JBARNES\Jason
    LOG: DisplayName = Microsoft.VisualStudio.QualityTools.CodedUITestPackage, PublicKeyToken=b03f5f7f11d50a3a
     (Partial)
    WRN: Partial binding information was supplied for an assembly:
    WRN: Assembly Name: Microsoft.VisualStudio.QualityTools.CodedUITestPackage, PublicKeyToken=b03f5f7f11d50a3a | Domain ID: 1
    WRN: A partial bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity for the assembly,
    WRN: that consists of the simple name, version, culture, and public key token.
    WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
    LOG: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/
    LOG: Initial PrivatePath = NULL
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PublicAssemblies/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PublicAssemblies/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/Editor/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/Editor/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Platform/Debugger/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Platform/Debugger/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PublicAssemblies/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PublicAssemblies/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/Editor/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/Editor/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Platform/Debugger/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Platform/Debugger/Microsoft.VisualStudio.QualityTools.CodedUITestPackage/Microsoft.VisualStudio.QualityTools.CodedUITestPackage.EXE.
    
    
    the message resource is present but the message is not found in the string/message table
    


    • Edited by Eleutian Tuesday, April 10, 2012 4:12 PM
    Tuesday, April 10, 2012 1:36 AM

Answers

All replies

  • I found another way to reproduce the issue as well. Again, you need an EF .edmx and a new SSDT project. If you simply have the .edmx designer open (nothing else) and then navigate to a .sql file within your SSDT Database Project and open it (viewing the new query designer) you will get a VS popup with an exception.

    Here is a screenshot of what I see. The designer is then white and I see the previously mentioned Windows Log error message.

    http://i.imgur.com/eHGkv.png

    Tuesday, April 10, 2012 3:12 PM
  • I attempted to attach a debugger to VS itself.

    The output when opening our .edmx

    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x0030d304..
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    'devenv.exe': Loaded 'ImageAtBase0x5b540000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0x19710000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x5b540000'
    'devenv.exe': Loaded 'ImageAtBase0x5e410000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0x19770000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x5e410000'
    'devenv.exe': Loaded 'C:\Windows\SysWOW64\rasapi32.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\SysWOW64\rasman.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\SysWOW64\rtutils.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Data.Entity.#\7a2e13e766c1ca7ea6d8c19edc01c900\System.Data.Entity.Design.ni.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Data.OracleC#\8bb9bb0155f1b57a3123ad5f38a1e75e\System.Data.OracleClient.ni.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_32\System.Data.OracleClient\v4.0_4.0.0.0__b77a5c561934e089\System.Data.OracleClient.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'ImageAtBase0x5afc0000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0x11150000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x5afc0000'
    'devenv.exe': Unloaded 'ImageAtBase0x11150000'
    'devenv.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\Microsoft.VisualStu#\01b7a41daaf4281d3c48198b88de49b6\Microsoft.VisualStudio.Data.Tools.Delta.UI.ni.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\Microsoft.VisualStu#\7283e3314f8dbeba9464dd0bcd03fc75\Microsoft.VisualStudio.VirtualTreeGrid.ni.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\WindowsFormsIntegra#\de8d4490d339109f109f248240ddd441\WindowsFormsIntegration.ni.dll', Cannot find or open the PDB file
    
    *** Status originated: -1073741471
    ***   Source File: d:\iso_whid\x86fre\base\isolation\id_parser.cpp, line 208
    
    
    *** Status propagated: -1073741471
    ***   Source File: d:\iso_whid\x86fre\base\isolation\com\identityauthority.cpp, line 147
    
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: HRException at memory location 0x0030d2dc..
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    'devenv.exe': Loaded 'ImageAtBase0x5e480000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0x11230000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x5e480000'
    'devenv.exe': Unloaded 'ImageAtBase0x11230000'
    System.Windows.Data Error: 40 : BindingExpression path error: 'HasLoadException' property not found on 'object' ''EntityDesignExplorerFrame' (Name='')'. BindingExpression:Path=HasLoadException; DataItem='EntityDesignExplorerFrame' (Name=''); target element is 'SearchComboBox' (Name='searchBox'); target property is 'IsEnabled' (type 'Boolean')
    System.Windows.Data Error: 40 : BindingExpression path error: 'HasLoadException' property not found on 'object' ''EntityDesignExplorerFrame' (Name='')'. BindingExpression:Path=HasLoadException; DataItem='EntityDesignExplorerFrame' (Name=''); target element is 'SearchAdornerDecorator' (Name='searchAdornerDecorator'); target property is 'Visibility' (type 'Visibility')
    'devenv.exe': Loaded 'C:\Windows\SysWOW64\mscms.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\SysWOW64\WindowsCodecsExt.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\SysWOW64\icm32.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.EnterpriseServices.Thunk.dll', Cannot find or open the PDB file
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: EEMessageException at memory location 0x0030e0c4..
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    
    

    The output when opening the SSDT Query Designer

    'devenv.exe': Loaded 'ImageAtBase0x5aa10000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0x25e0000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x5aa10000'
    'devenv.exe': Loaded 'ImageAtBase0x5a9a0000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0x3330000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x5a9a0000'
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x0030c268..
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    'devenv.exe': Loaded 'ImageAtBase0x62d40000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0xca60000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x62d40000'
    'devenv.exe': Unloaded 'ImageAtBase0xca60000'
    'devenv.exe': Loaded 'C:\Windows\assembly\GAC_32\Microsoft.SqlServer.BatchParser\11.0.0.0__89845dcd8080cc91\microsoft.sqlserver.batchparser.dll', Cannot find or open the PDB file
    'devenv.exe': Unloaded 'C:\Windows\assembly\GAC_32\Microsoft.SqlServer.BatchParser\11.0.0.0__89845dcd8080cc91\microsoft.sqlserver.batchparser.dll'
    'devenv.exe': Loaded 'C:\Windows\assembly\GAC_32\Microsoft.SqlServer.BatchParser\11.0.0.0__89845dcd8080cc91\microsoft.sqlserver.batchparser.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\Microsoft.SqlServer#\37d0207690c147c5f762711c09fe5c73\Microsoft.SqlServer.BatchParser.ni.dll', Cannot find or open the PDB file
    'devenv.exe': Unloaded 'C:\Windows\assembly\GAC_32\Microsoft.SqlServer.BatchParser\11.0.0.0__89845dcd8080cc91\microsoft.sqlserver.batchparser.dll'
    'devenv.exe': Loaded 'C:\Windows\assembly\GAC_32\Microsoft.SqlServer.BatchParser\11.0.0.0__89845dcd8080cc91\microsoft.sqlserver.batchparser.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\msvcr80.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\msvcp80.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\msvcm80.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'ImageAtBase0x63c00000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0x3410000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x63c00000'
    'devenv.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\Microsoft.SqlServer#\be9549fa05c754ec6dc6c27a5a1cff38\Microsoft.SqlServer.RegSvrEnum.ni.dll', Cannot find or open the PDB file
    'devenv.exe': Loaded 'ImageAtBase0x59920000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0xca60000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x59920000'
    'devenv.exe': Unloaded 'ImageAtBase0xca60000'
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x0030b7c8..
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    'devenv.exe': Loaded 'ImageAtBase0x59910000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0xca60000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x59910000'
    'devenv.exe': Unloaded 'ImageAtBase0xca60000'
    'devenv.exe': Loaded 'ImageAtBase0x59840000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0xca60000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x59840000'
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x0030c5c8..
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    'devenv.exe': Loaded 'ImageAtBase0x599b0000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0xbd80000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x599b0000'
    'devenv.exe': Unloaded 'ImageAtBase0xbd80000'
    'devenv.exe': Loaded 'ImageAtBase0x59980000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0xbd80000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x59980000'
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    'devenv.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\UIAutomationTypes\9562374f940f41cdc64d88268d543f0b\UIAutomationTypes.ni.dll', Cannot find or open the PDB file
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    'devenv.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\Microsoft.SqlServer#\075275b41dc322de6a48fb2922a5c061\Microsoft.SqlServer.ConnectionInfo.ni.dll', Cannot find or open the PDB file
    System.Windows.Data Error: 40 : BindingExpression path error: 'Table' property not found on 'object' ''TableDesignerDataContext' (HashCode=25926813)'. BindingExpression:Path=Table; DataItem='TableDesignerDataContext' (HashCode=25926813); target element is 'Border' (Name=''); target property is 'Visibility' (type 'Visibility')
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x0bd7a15c in devenv.exe: 0xC0000005: Access violation reading location 0x00000000.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x0030c86c..
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    'devenv.exe': Loaded 'ImageAtBase0x65760000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Loaded 'ImageAtBase0xe830000', Loading disabled by Include/Exclude setting.
    'devenv.exe': Unloaded 'ImageAtBase0x65760000'
    'devenv.exe': Unloaded 'ImageAtBase0xe830000'
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352.
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: EEMessageException at memory location 0x0030e0a0..
    First-chance exception at 0x75dfb9bc in devenv.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    
    
    Tuesday, April 10, 2012 3:58 PM
  • Thanks for reporting, we'll take a look and try to reproduce based on the steps and enviroment you described, and get back to you. Also, if you could try to attach the debugger for managed-onlydebuggin, and enable breaking on CLR exceptions, that may give some call stack information that could help pinpoint the source of the crash.

    Wednesday, April 11, 2012 11:32 PM
  • I tried to do as you requested but nothing was really throwing. There are really only 3 kinds of errors/exceptions I see in the log. The exceptions themselves seem to be Win32 Access Violation Exceptions.

    System.Windows.Data Error: 40 : BindingExpression path error: 'Table' property not found on 'object' ''TableDesignerDataContext' (HashCode=21409632)'. BindingExpression:Path=Table; DataItem='TableDesignerDataContext' (HashCode=21409632); target element is 'Border' (Name=''); target property is 'Visibility' (type 'Visibility')
    
    First-chance exception at 0x75dfb9bc in devenv.exe: 0xE0434352: 0xe0434352. (There are many of these)
    
    First-chance exception at 0x0c1b17cc in devenv.exe: 0xC0000005: Access violation reading location 0x00000000.
    

    It seems that the popup I shared in my screenshot shows up after the last exception (Access Violation reading location 0x00000000). Here is a Call Stack for that error. Is this what you're looking for?

    >	0c1b17cc()	
     	0c1b1340()	
     	0c1b056a()	
     	0c1b02bd()	
     	Microsoft.VisualStudio.Platform.WindowManagement.ni.dll!6a08f6b8() 	
     	[Frames below may be incorrect and/or missing, no symbols loaded for Microsoft.VisualStudio.Platform.WindowManagement.ni.dll]	
     	Microsoft.VisualStudio.Platform.WindowManagement.ni.dll!6a08f26d() 	
     	Microsoft.VisualStudio.Platform.WindowManagement.ni.dll!6a091a92() 	
     	Microsoft.VisualStudio.Shell.10.0.ni.dll!6cc4f968() 	
     	Microsoft.VisualStudio.Platform.WindowManagement.ni.dll!6a091f13() 	
     	Microsoft.VisualStudio.Shell.Interop.ni.dll!6a3d4199() 	
     	clr.dll!6f8425a1() 	
     	clr.dll!6f9ccd33() 	
     	clr.dll!6f9cce0c() 	
     	clr.dll!6f9cce72() 	
     	clr.dll!6f9ccfd7() 	
     	0038a207()	
     	ProjectAggregator.dll!66024c80() 	
     	ProjectAggregator.dll!66024c80() 	
     	msenv.dll!02ac23d1() 	
     	msenv.dll!02ac22d3() 	
     	msenv.dll!02a0c7e5() 	
     	user32.dll!754262fa() 	
     	user32.dll!75426d3a() 	
     	user32.dll!75426ce9() 	
     	user32.dll!754277c4() 	
     	user32.dll!7542788a() 	
     	msenv.dll!029f6098() 	
     	msenv.dll!029f6121() 	
     	msenv.dll!028b17e3() 	
     	msenv.dll!028b1675() 	
     	msenv.dll!028b1642() 	
     	msenv.dll!028b1584() 	
     	msenv.dll!0295e188() 	
     	devenv.exe!2f590637() 	
     	devenv.exe!2f590fd4() 	
     	kernel32.dll!75a051f3() 	
     	msvcr100.dll!74d7a9e5() 	
     	msvcr100.dll!74d7aa1b() 	
     	devenv.exe!2f592148() 	
     	devenv.exe!2f59ea7f() 	
     	kernel32.dll!75a0339a() 	
     	ntdll.dll!77929ef2() 	
     	ntdll.dll!77929ec5() 	
    
    
    
    Thursday, April 12, 2012 12:20 AM
  • I can not repro the issue. Here are steps I tried:

    1. Image a clean Win7 Ultimate AMD64 bit OS

    2. Install Dev10 from: \\products\public\Products\Developers\Visual Studio 2010\Professional.

    3. Install Dev10 SP1 from: \\products\public\Products\Developers\Visual Studio 2010 SP1\Visual Studio 2010 SP1

    4. Install MSSQL 2012 from: \\sqlbuilds\Released\SQLServer2012\RTM\11.0.2100.60\release\editions\SQLFULL

    5. Install SSDT from: http://msdn.microsoft.com/en-us/data/hh297027

    6. New ConsoleApp project, Add “ADO.Net Entity Data Model”, choose Generate from database. Add table Categories from Northwind database, close Model1.edmx file.

    7. Add SQL Server Database Project, Add->Table, publish (tried with same or different database mentioned in step 6)

    8. Switch to created ConsoleApp project, double click on Model1.edmx file to launch EF Designer, context menu ->Update Model from Database, choose Add or Refresh. Operation complete successfully.

    Did I miss anything?

    • Proposed as answer by Janet Yeilding Friday, April 13, 2012 9:09 PM
    • Unproposed as answer by Eleutian Monday, April 16, 2012 3:45 PM
    Friday, April 13, 2012 8:35 PM
  • I'm not sure if this matters, but we're running on Windows 7 Enterprise 64bit.

    Here are the most simplest examples I can provide. I have provided a a link to the zip for this solution if it helps, but you should be able to duplicate this using only the screenshots. I didn't even use the 'Update Mode from DB' this time. I added it manually and have the same problems. I also just tried on yet another computer (this time a independent laptop with Win7 Enterprise and as well)  and it experiences the same problem. I have even re-installed and repaired everything.

    Example Solution (Example.zip): 
    http://minus.com/m4BtkeakW/

    Example 1:

    1) Open Example.sln (no documents should be opened)
    http://i.imgur.com/ueXSvh.png

    2) Double click on  ExampleDB.edmx located in the Example.App Project. (You should see a User entity)
    http://i.imgur.com/rDoYsh.png

    3) Double click on User.sql located in the Example.Database Project.
    http://i.imgur.com/ZbXGRh.png

    Example 2:

    1) Open Example.sln (no documents should be opened)
    http://i.imgur.com/o8lIv.png

    2) Double click on User.sql located in the Example.Database Project. (Notice the designer works fine now)
    http://i.imgur.com/xzv6B.png

    3) Double click on ExampleDB.edmx located in the Example.App Project. (Notice the Model Browser is gray and broken)
    http://i.imgur.com/C79Kg.png

    4) Right click the Designer and Add a new Entity named 'Anything' (Except shows up here now)
    http://i.imgur.com/8lsw7.png




    Saturday, April 14, 2012 12:01 AM
  • I've had this happen. I can't reproduce it consistently though.

    Derek

    Monday, April 16, 2012 6:17 PM
  • Thanks for the confirmation Derek. At least I don't feel like we're completely crazy over here! :)

    @BeiZhu - I was able to get a bit more information on the call stack itself. Maybe this will help? Sadly, I was unable to figure out how to load the Microsoft.VisualStudio.Shell.Interop.ni.dll symbols/pdb. No matter what I did in VS it didn't seem to want to download them.

    The popup I see definitely seems to be related to this error:

    First-chance exception at 0x1a2b030c in devenv.exe: 0xC0000005: Access violation reading location 0x00000000.

    >	1a2b030c()	
     	0d3cfda0()	
     	0d3cd502()	
     	0d3cd23d()	
     	0027252b()	
     	00270433()	
     	0b3cfbcb()	
     	0b3cfba5()	
     	16969465()	
     	16969441()	
     	1bddac76()	
     	1bdda8c1()	
     	1bdda7c9()	
     	1bdda73d()	
     	1bdda689()	
     	1bdda3f6()	
     	1bdda1cb()	
     	1bdda0d6()	
     	1bdd9e7c()	
     	02662a1f()	
     	02661814()	
     	02661503()	
     	Microsoft.VisualStudio.Shell.Interop.ni.dll!70224199() 	
     	[Frames below may be incorrect and/or missing, no symbols loaded for Microsoft.VisualStudio.Shell.Interop.ni.dll]	
     	clr.dll!_COMToCLRDispatchHelper@28()  + 0x28 bytes	
     	clr.dll!BaseWrapper<stub *="" *,&donothing<stub="" *,functionbase<stub="">,&StubRelease<stub>,2>,0,&CompareDefault<stub *="">,2>::~BaseWrapper<stub *="" *,&donothing<stub="" *,functionbase<stub="">,&StubRelease<stub>,2>,0,&CompareDefault<stub *="">,2>()  + 0x17ac96 bytes	
     	clr.dll!COMToCLRWorkerBody()  + 0x80 bytes	
     	clr.dll!COMToCLRWorkerDebuggerWrapper()  + 0x34 bytes	
     	clr.dll!_COMToCLRWorker@8()  + 0x12b bytes	
     	003ea207()	
     	ProjectAggregator.dll!CProjectAggregator::ExecCommand()  + 0x2c bytes	
     	msenv.dll!CVsUIHierarchyBaseWin::ExecHierParentChain()  + 0x85 bytes	
     	msenv.dll!CVsUIHierarchyBaseWin::WinExecCommand()  + 0x7d bytes	
     	msenv.dll!FnwpTVFixer()  + 0x76b6e bytes	
     	user32.dll!_InternalCallWinProc@20()  + 0x23 bytes	
     	user32.dll!_UserCallWinProcCheckWow@32()  + 0xb7 bytes	
     	user32.dll!_DispatchMessageWorker@8()  + 0xed bytes	
     	user32.dll!_DispatchMessageW@4()  + 0xf bytes	
     	msenv.dll!ProcessMessage()  + 0x4d bytes	
     	msenv.dll!CMsoCMHandler::EnvironmentMsgLoop()  + 0x87 bytes	
     	msenv.dll!CMsoCMHandler::FPushMessageLoop()  + 0x79 bytes	
     	msenv.dll!SCM::FPushMessageLoop()  + 0x8c bytes	
     	msenv.dll!SCM_MsoCompMgr::FPushMessageLoop()  + 0x2a bytes	
     	msenv.dll!CMsoComponent::PushMsgLoop()  + 0x28 bytes	
     	msenv.dll!VStudioMainLogged()  + 0x22a bytes	
     	msenv.dll!_VStudioMain()  + 0x78 bytes	
     	devenv.exe!util_CallVsMain()  + 0xdb bytes	
     	devenv.exe!CDevEnvAppId::Run()  + 0x693 bytes	
     	devenv.exe!_WinMain@16()  + 0x9c bytes	
     	devenv.exe!operator new[]()  + 0xb31c bytes	
     	kernel32.dll!@BaseThreadInitThunk@12()  + 0x12 bytes	
     	ntdll.dll!___RtlUserThreadStart@8()  + 0x27 bytes	
     	ntdll.dll!__RtlUserThreadStart@8()  + 0x1b bytes	
    
    </stub></stub></stub></stub></stub></stub>
    Monday, April 16, 2012 6:38 PM
  • Using project provided by ETJBarnes, I am able to repro the issue. I will work with our dev on it.

    Thanks for reporting the issue!

    Bei

    Thursday, April 19, 2012 11:56 PM
  • That's the best news I've heard in a while! Thanks for your help Bei Zhu.
    Friday, April 20, 2012 4:10 AM
  • Hi Eleutian,

    Could you please look at this feedback posted on Connect?

    http://connect.microsoft.com/VisualStudio/feedback/details/730440/ssdt-rtw-and-ef-model-edmx-in-the-same-solution-conflict

    I am having the same issue, but the SSDT team was unable to reproduce it. I am having the same issue also on a very fresh setup (new machine bought and delivered from the factory less than a week ago, therefore no risk of issues from pre-existing softwares).

    Re-opening the feedback, or opening a new one could be useful for everybody.

    If you are posting (or already posted) a different bug, please let me know: will vote for it and subscribe for alerts.

    Thank you

    Alberto

    Monday, April 30, 2012 7:13 AM
  • Thanks for the link! I voted up the ticket.

    I also posted a summary of what I had here and also attached the example solution which BeiZhu was able to reproduce the issue with. Hopefully we'll hear back soon.

    @BeiZhu - Could you or someone please look into getting that ticket re-opened? We've definitely been able to reproduce the bug.


    • Edited by Eleutian Monday, April 30, 2012 3:47 PM
    • Proposed as answer by Piggy Tuesday, May 1, 2012 4:05 AM
    Monday, April 30, 2012 3:24 PM
  • Thanks a lot for reporting the issue. The bug is fixed and will be in next release. For workaround, could you please try to open two VS: one for SSDT and the other for Entity Designer?

    Thanks

    Bei

    Monday, April 30, 2012 6:16 PM
  • Hi Eleutian and BeiZhu,

    Thank you very much for your interest in the issue!

    I am very happy to hear the problem has been fixed: the SSDT is a fantastic tool, and it will be great to get it fully functional.

    If you believe I can be useful for anything, let me know (I will keep monitoring this thread for further news).

    Thanks again

    Alberto

    Tuesday, May 1, 2012 4:04 AM
  • Is this fix likely to be released soon?  It's almost August and there's been no update.
    Thursday, July 26, 2012 6:56 AM
  • Hi all,

    I have installed the last update - September 2012 Update - from here: http://blogs.msdn.com/b/ssdt/archive/2012/09/14/now-available-sql-server-data-tools-september-2012-update.aspx?wa=wsignin1.0

    With this update, the issue is resolved.

    Thank you very much SSDT Team!!!!

    Alberto

    Saturday, September 15, 2012 4:03 PM