locked
Expression Blend crashes when opening project / solution RRS feed

  • Question

  • Hey, suddenly a solution/project started to crash when opening in Expression Blend. It compiles and runs fine using Visual Studio. Other projects works fine in Expression Blend, and this project worked fine earlier.

    Using VS and EB SP1, and Windows 7 64-bit.


    Debugging Blend.exe through VS gives this information:

    Error:
    ====================
      

    An unhandled exception of type 'System.NullReferenceException' occurred in Microsoft.Expression.Project.dll
    Additional information: Object reference not set to an instance of an object.
    
     
    

    Callstack:
    =====================
     

    > Microsoft.Expression.Project.dll!Microsoft.Expression.Project.ProjectManager.OpenSolution(Microsoft.Expression.Project.ProjectReference solutionOrProjectReference = {D:\ProtectedSolutionName.sln}, bool addToRecentList, bool openInitialScene) + 0x295 bytes 
      Microsoft.Expression.Project.dll!Microsoft.Expression.Project.Commands.OpenProjectCommand.Execute() + 0x7e bytes 
      Microsoft.Expression.Framework.dll!Microsoft.Expression.Framework.Commands.CommandTarget.Execute(string commandName, Microsoft.Expression.Framework.Commands.CommandInvocationSource invocationSource) + 0x17 bytes 
      Microsoft.Expression.Framework.dll!Microsoft.Expression.Framework.Commands.CommandService.Execute(string commandName = "Project_OpenProject", Microsoft.Expression.Framework.Commands.CommandInvocationSource invocationSource) + 0x72 bytes 
      Microsoft.Expression.Framework.dll!Microsoft.Expression.Framework.UserInterface.CommandBarButton.ExecuteCommandCallback(object arg) + 0x1e bytes 
      WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback = {Method = {System.Object ExecuteCommandCallback(System.Object)}}, object args = null, bool isSingleParameter = true) + 0x8a bytes 
      WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source = {System.Windows.Threading.Dispatcher}, System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler = null) + 0x4a bytes 
      WindowsBase.dll!System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler) + 0x44 bytes 
      WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl() + 0x5d bytes 
      WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(object state) + 0x38 bytes 
      mscorlib.dll!System.Threading.ExecutionContext.runTryCode(object userData) + 0x51 bytes 
      [Native to Managed Transition] 
      [Managed to Native Transition] 
      mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x67 bytes 
      mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x45 bytes 
      WindowsBase.dll!System.Windows.Threading.DispatcherOperation.Invoke() + 0x63 bytes 
      WindowsBase.dll!System.Windows.Threading.Dispatcher.ProcessQueue() + 0x127 bytes 
      WindowsBase.dll!System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x63 bytes 
      WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd = 788136, int msg = 49539, System.IntPtr wParam = 0, System.IntPtr lParam = 0, ref bool handled = false) + 0xbe bytes 
      WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x7a bytes 
      WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback = {Method = {System.Object DispatcherCallbackOperation(System.Object)}}, object args = {MS.Win32.HwndSubclass.DispatcherOperationCallbackParameter}, bool isSingleParameter = true) + 0x8a bytes 
      WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source = {System.Windows.Threading.Dispatcher}, System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler = null) + 0x4a bytes 
      WindowsBase.dll!System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler) + 0x44 bytes 
      WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, bool isSingleParameter) + 0x91 bytes 
      WindowsBase.dll!System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority priority, System.Delegate method, object arg) + 0x40 bytes 
      WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd = 788136, int msg = 49539, System.IntPtr wParam = 0, System.IntPtr lParam = 0) + 0xdc bytes 
      [Native to Managed Transition] 
      [Managed to Native Transition] 
      WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame = {System.Windows.Threading.DispatcherFrame}) + 0xc7 bytes 
      WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame frame) + 0x49 bytes 
      WindowsBase.dll!System.Windows.Threading.Dispatcher.Run() + 0x4c bytes 
      PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) + 0x1e bytes 
      PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) + 0x6f bytes 
      PresentationFramework.dll!System.Windows.Application.Run(System.Windows.Window window) + 0x26 bytes 
      PresentationFramework.dll!System.Windows.Application.Run() + 0x19 bytes 
      Microsoft.Expression.Framework.dll!Microsoft.Expression.Framework.ExpressionApplication.RunApplication() + 0x3f bytes 
      Microsoft.Expression.Blend.dll!Microsoft.Expression.Blend.BlendApplication.BlendApplication(Microsoft.Expression.Framework.UserInterface.SplashScreen splashScreen) + 0x3f bytes 
      Blend.exe!Microsoft.Expression.Application.Main(string[] args) + 0x1ff bytes 
     
      
      
    Disassembly (295):
    =====================================
     
    00000000  push        ebp  
    00000001  mov         ebp,esp 
    00000003  push        edi  
    00000004  push        esi  
    00000005  push        ebx  
    00000006  sub         esp,38h 
    00000009  mov         esi,ecx 
    0000000b  lea         edi,[ebp-30h] 
    0000000e  mov         ecx,8 
    00000013  xor         eax,eax 
    00000015  rep stos    dword ptr es:[edi] 
    00000017  mov         ecx,esi 
    00000019  xor         eax,eax 
    0000001b  mov         dword ptr [ebp-18h],eax 
    0000001e  mov         dword ptr [ebp-24h],ecx 
    00000021  mov         dword ptr [ebp-28h],edx 
    00000024  mov         esi,dword ptr [ebp-24h] 
    00000027  mov         ecx,50h 
    0000002c  call        dword ptr ds:[6CA4995Ch] 
    00000032  call        FFF926AC 
    00000037  mov         dword ptr [ebp-2Ch],eax 
    0000003a  call        FFF92624 
    0000003f  mov         ecx,eax 
    00000041  call        FFF926B4 
    00000046  mov         edi,dword ptr [ebp-28h] 
    00000049  mov         edx,edi 
    0000004b  mov         ecx,esi 
    0000004d  call        FFF97D04 
    00000052  test        eax,eax 
    00000054  jne         000000E8 
    0000005a  mov         ecx,dword ptr [esi+48h] 
    0000005d  cmp         dword ptr [ecx],ecx 
    0000005f  call        FFFFE580 
    00000064  mov         ebx,eax 
    00000066  mov         edx,37Ah 
    0000006b  mov         ecx,1 
    00000070  call        FFF94C6C 
    00000075  call        FFF92674 
    0000007a  mov         ecx,eax 
    0000007c  cmp         dword ptr [ecx],ecx 
    0000007e  call        FFF925FC 
    00000083  mov         dword ptr [ebp-3Ch],eax 
    00000086  call        FFF9761C 
    0000008b  mov         esi,eax 
    0000008d  mov         ecx,dword ptr ds:[6CA4745Ch] 
    00000093  mov         edx,1 
    00000098  call        FFF94CA4 
    0000009d  mov         dword ptr [ebp-34h],eax 
    000000a0  push        dword ptr [edi+4] 
    000000a3  mov         ecx,eax 
    000000a5  xor         edx,edx 
    000000a7  call        FFF94CAC 
    000000ac  push        dword ptr [ebp-34h] 
    000000af  mov         edx,esi 
    000000b1  mov         ecx,dword ptr [ebp-3Ch] 
    000000b4  call        FFF92504 
    000000b9  mov         esi,eax 
    000000bb  call        FFF9763C 
    000000c0  push        eax  
    000000c1  mov         edx,esi 
    000000c3  mov         ecx,ebx 
    000000c5  call        dword ptr ds:[6CA47CDCh] 
    000000cb  xor         edx,edx 
    000000cd  mov         dword ptr [ebp-30h],edx 
    000000d0  mov         dword ptr [ebp-1Ch],0 
    000000d7  mov         dword ptr [ebp-18h],0FCh 
    000000de  push        6CAE1079h 
    000000e3  jmp         00000347 
    000000e8  cmp         dword ptr [esi+3Ch],0 
    000000ec  je          00000143 
    000000ee  mov         ecx,dword ptr [esi+3Ch] 
    000000f1  call        dword ptr ds:[6CA47CE0h] 
    000000f7  mov         ecx,eax 
    000000f9  call        dword ptr ds:[6CA47CE4h] 
    000000ff  mov         ecx,eax 
    00000101  mov         edx,dword ptr [edi+4] 
    00000104  call        FFF9231C 
    00000109  test        eax,eax 
    0000010b  jne         0000011C 
    0000010d  mov         ecx,dword ptr [esi+3Ch] 
    00000110  mov         edx,edi 
    00000112  call        dword ptr ds:[6CA47CE8h] 
    00000118  test        eax,eax 
    0000011a  je          0000013A 
    0000011c  mov         eax,dword ptr [esi+3Ch] 
    0000011f  mov         dword ptr [ebp-30h],eax 
    00000122  mov         dword ptr [ebp-1Ch],0 
    00000129  mov         dword ptr [ebp-18h],0FCh 
    00000130  push        6CAE1082h 
    00000135  jmp         00000347 
    0000013a  mov         ecx,esi 
    0000013c  xor         edx,edx 
    0000013e  call        00000E90 
    00000143  mov         eax,dword ptr [esi+4Ch] 
    00000146  mov         dword ptr [ebp-38h],eax 
    00000149  mov         ecx,dword ptr ds:[6CA499C4h] 
    0000014f  call        FFF94BF4 
    00000154  mov         ebx,eax 
    00000156  mov         edx,dword ptr [edi+4] 
    00000159  mov         ecx,ebx 
    0000015b  call        dword ptr ds:[6CA49948h] 
    00000161  push        ebx  
    00000162  mov         edx,dword ptr [ebp-38h] 
    00000165  mov         ecx,esi 
    00000167  call        FFF97CBC 
    0000016c  lea         edx,[esi+3Ch] 
    0000016f  call        FFF94C44 
    00000174  mov         ecx,dword ptr [esi+3Ch] 
    00000177  call        dword ptr ds:[6CA47CECh] 
    0000017d  test        eax,eax 
    0000017f  jne         00000194 
    00000181  mov         ecx,dword ptr [esi+3Ch] 
    00000184  call        dword ptr ds:[6CA47CF0h] 
    0000018a  xor         edx,edx 
    0000018c  mov         dword ptr [esi+3Ch],edx 
    0000018f  jmp         00000332 
    00000194  movzx       eax,byte ptr [ebp+8] 
    00000198  test        eax,eax 
    0000019a  je          00000209 
    0000019c  mov         ecx,dword ptr [esi+3Ch] 
    0000019f  call        dword ptr ds:[6CA47CF4h] 
    000001a5  mov         edx,eax 
    000001a7  mov         ecx,6CB24E90h 
    000001ac  call        FFF94C04 
    000001b1  mov         edi,eax 
    000001b3  test        edi,edi 
    000001b5  je          000001D9 
    000001b7  mov         edx,edi 
    000001b9  mov         ecx,6CB24BF4h 
    000001be  call        FFF94C04 
    000001c3  mov         edx,eax 
    000001c5  mov         ecx,esi 
    000001c7  call        00002624 
    000001cc  mov         ecx,dword ptr [esi+3Ch] 
    000001cf  mov         edx,edi 
    000001d1  call        dword ptr ds:[6CA47CF8h] 
    000001d7  jmp         00000209 
    000001d9  mov         ecx,dword ptr [esi+3Ch] 
    000001dc  call        dword ptr ds:[6CA47CFCh] 
    000001e2  cmp         dword ptr [eax+0Ch],1 
    000001e6  jne         00000209 
    000001e8  mov         edi,dword ptr [esi+3Ch] 
    000001eb  mov         ecx,dword ptr [esi+3Ch] 
    000001ee  call        dword ptr ds:[6CA47D00h] 
    000001f4  mov         ecx,eax 
    000001f6  xor         edx,edx 
    000001f8  cmp         dword ptr [ecx],ecx 
    000001fa  call        FFF926BC 
    000001ff  mov         edx,eax 
    00000201  mov         ecx,edi 
    00000203  call        dword ptr ds:[6CA47D04h] 
    00000209  mov         edx,dword ptr [esi+58h] 
    0000020c  mov         eax,dword ptr [edx+4] 
    0000020f  cmp         dword ptr [eax+0Ch],0 
    00000213  jne         00000222 
    00000215  mov         ecx,dword ptr [esi+58h] 
    00000218  mov         edx,dword ptr [esi+3Ch] 
    0000021b  cmp         dword ptr [ecx],ecx 
    0000021d  call        0000485C 
    00000222  movzx       eax,byte ptr [ebp+0Ch] 
    00000226  test        eax,eax 
    00000228  je          00000244 
    0000022a  mov         ecx,dword ptr [esi+3Ch] 
    0000022d  call        dword ptr ds:[6CA47D08h] 
    00000233  mov         ecx,eax 
    00000235  call        dword ptr ds:[6CA47D0Ch] 
    0000023b  mov         edx,eax 
    0000023d  mov         ecx,esi 
    0000023f  call        FFF97CFC 
    00000244  mov         ecx,6CB3B860h 
    00000249  call        FFF94BF4 
    0000024e  mov         ecx,eax 
    00000250  mov         eax,dword ptr [esi+3Ch] 
    00000253  lea         edx,[ecx+4] 
    00000256  call        FFF94C44 
    0000025b  mov         edx,ecx 
    0000025d  mov         ecx,esi 
    0000025f  call        00002548 
    00000264  mov         edx,49h 
    00000269  lea         ecx,[edx-48h] 
    0000026c  call        FFF94C54 
    00000271  mov         edx,dword ptr [eax+4Ch] 
    00000274  mov         ecx,esi 
    00000276  call        000025B4 
    0000027b  jmp         00000332 
    00000280  mov         edi,eax 
    00000282  mov         edx,edi 
    00000284  mov         ecx,dword ptr [ebp-24h] 
    00000287  call        FFF97D0C 
    0000028c  test        eax,eax 
    0000028e  jne         00000295 
    00000290  call        FFF94C9C 
    > 00000295  mov         eax,dword ptr [ebp-24h] 
    00000298  mov         ecx,dword ptr [eax+48h] 
    0000029b  cmp         dword ptr [ecx],ecx 
    0000029d  call        FFFFE580 
    000002a2  mov         dword ptr [ebp-40h],eax 
    000002a5  call        FFF924FC 
    000002aa  mov         ebx,eax 
    000002ac  call        FFF9760C 
    000002b1  mov         dword ptr [ebp-44h],eax 
    000002b4  mov         ecx,dword ptr ds:[6CA4745Ch] 
    000002ba  mov         edx,2 
    000002bf  call        FFF94CA4 
    000002c4  mov         esi,eax 
    000002c6  mov         ecx,dword ptr [ebp-28h] 
    000002c9  cmp         dword ptr [ecx],ecx 
    000002cb  call        dword ptr ds:[6CA49954h] 
    000002d1  push        eax  
    000002d2  mov         ecx,esi 
    000002d4  xor         edx,edx 
    000002d6  call        FFF94CAC 
    000002db  mov         ecx,edi 
    000002dd  mov         eax,dword ptr [ecx] 
    000002df  call        dword ptr [eax+38h] 
    000002e2  push        eax  
    000002e3  mov         ecx,esi 
    000002e5  mov         edx,1 
    000002ea  call        FFF94CAC 
    000002ef  push        esi  
    000002f0  mov         edx,dword ptr [ebp-44h] 
    000002f3  mov         ecx,ebx 
    000002f5  call        FFF92504 
    000002fa  mov         esi,eax 
    000002fc  call        FFF9763C 
    00000301  push        eax  
    00000302  mov         edx,esi 
    00000304  mov         ecx,dword ptr [ebp-40h] 
    00000307  call        dword ptr ds:[6CA47D10h] 
    0000030d  mov         ecx,dword ptr [ebp-24h] 
    00000310  call        000011F4 
    00000315  test        eax,eax 
    00000317  je          0000032D 
    00000319  mov         eax,dword ptr [ebp-24h] 
    0000031c  mov         ecx,dword ptr [eax+3Ch] 
    0000031f  call        dword ptr ds:[6CA47D14h] 
    00000325  mov         eax,dword ptr [ebp-24h] 
    00000328  xor         edx,edx 
    0000032a  mov         dword ptr [eax+3Ch],edx 
    0000032d  call        FFF94C5C 
    00000332  mov         dword ptr [ebp-1Ch],0 
    00000339  mov         dword ptr [ebp-18h],0FCh 
    00000340  push        6CAE108Bh 
    00000345  jmp         00000347 
    00000347  mov         ecx,dword ptr [ebp-2Ch] 
    0000034a  call        FFF926B4 
    0000034f  mov         ecx,50h 
    00000354  call        dword ptr ds:[6CA49964h] 
    0000035a  pop         eax  
    0000035b  jmp         eax  
    0000035d  mov         eax,dword ptr [ebp-24h] 
    00000360  mov         eax,dword ptr [eax+3Ch] 
    00000363  lea         esp,[ebp-0Ch] 
    00000366  pop         ebx  
    00000367  pop         esi  
    00000368  pop         edi  
    00000369  pop         ebp  
    0000036a  ret         8    
    0000036d  mov         dword ptr [ebp-18h],0 
    00000374  jmp         00000388 
    00000376  mov         dword ptr [ebp-18h],0 
    0000037d  jmp         00000388 
    0000037f  mov         dword ptr [ebp-18h],0 
    00000386  jmp         0000035D 
    00000388  mov         eax,dword ptr [ebp-30h] 
    0000038b  lea         esp,[ebp-0Ch] 
    0000038e  pop         ebx  
    0000038f  pop         esi  
    00000390  pop         edi  
    00000391  pop         ebp  
    00000392  ret         8    
    
     
    Wednesday, March 18, 2009 3:32 PM

Answers

  • Hi Beeblebrox,

    An unhandled exception of type 'System.NullReferenceException' occurred in Microsoft.Expression.Project.dll Additional information: Object reference not set to an instance of an object.

    It is a kind of normal exception.  We cannot find out where it occurs according to your description. We highly recommend you comment your code part by part and then the properties.  That will be the effiecient way.  Thanks, please let me know the result.

    Best regards,

    Jonathan

    Monday, March 23, 2009 5:50 AM