locked
Designer crashes in Visual Studio 2012 (XDesProc.exe)

    Question

  • When I create a blank Windows 8 Store App project and open up the generated MainPage.xaml the designer crashes with the following message:

    System.Runtime.InteropServices.COMException
    Error HRESULT E_FAIL has been returned from a call to a COM component.
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func, CallSynchronizationMode syncMode)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__11(RemoteCancellationToken remoteToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation[TResult](CancellationToken cancelToken, Func`2 func)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)

    System.Runtime.InteropServices.COMException
    Error HRESULT E_FAIL has been returned from a call to a COM component.

    Server stack trace: 
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject targetObject, Func`1 func)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken)
       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

    Exception rethrown at [0]: 
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass8.<CreateDesignerImpl>b__6(IRemoteDesignerService d)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4`2.<MarshalOut>b__3()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

    System.Runtime.InteropServices.COMException
    Error HRESULT E_FAIL has been returned from a call to a COM component.
       at Windows.Foundation.IAsyncOperation`1.GetResults()
       at Microsoft.Expression.WindowsXamlPlatform.Host.RuntimeResourceManager.GetStorageFileForPath(String indexPath)
       at Microsoft.Expression.WindowsXamlPlatform.Host.RuntimeResourceManager.ProcessIndexUpdates()
       at Microsoft.Expression.WindowsXamlPlatform.Host.RuntimeResourceManager.OnNewIndex(String newFileName, String newResourceMapName)
       at Microsoft.Expression.WindowsXamlPlatform.Host.XamlUIPresenterHostServices.OnResourceIndexUpdated(HostResourceIndexUpdatedEventArgs args)
       at Microsoft.Expression.WindowsXamlPlatform.Host.WindowsUIXamlResourceIndexProvider.OnResourceIndexUpdated(EventArgs args)
       at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__f(CancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.CallWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__e()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

    It doesn't matter if I create a new page or usercontrol, I get the same exception.
    The logs in the event viewer says:

    Application: XDesProc.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.NullReferenceException
    Stack:
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext, BlockingCall, System.Threading.WaitHandle)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(System.Action, Int32, System.Threading.WaitHandle, System.Threading.WaitHandle)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(System.Action, Int32, System.Threading.WaitHandle, Microsoft.Expression.DesignHost.Isolation.Remoting.CallSynchronizationMode, System.Threading.WaitHandle)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHandle`1<System.__Canon>, System.Action, Microsoft.Expression.DesignHost.Isolation.Remoting.CallSynchronizationMode)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHandle`1<System.__Canon>, System.Func`2<System.__Canon,Int32>, Microsoft.Expression.DesignHost.Isolation.Remoting.CallSynchronizationMode)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalHostTextBufferSynchronizer.SetDoppelganger(Microsoft.Expression.DesignHost.IDesignerTextBufferSynchronizer, Int32 ByRef)
       at Microsoft.Expression.DesignHost.DesignerTextBufferSynchronizer..ctor(Microsoft.Expression.DesignHost.IHostTextBufferSynchronizer, Microsoft.Expression.DesignHost.IDisposableLifetimeWatcher`1<Microsoft.Expression.DesignHost.DesignerTextBufferSynchronizer>)
       at Microsoft.Expression.DesignSurface.TextBufferContext.FindOrCreateTextBufferSynchronizer(Microsoft.Expression.DesignHost.IHostSourceItem, Boolean, Boolean)
       at Microsoft.Expression.DesignSurface.TextBufferContext.CreateTextBuffer(Microsoft.Expression.DesignHost.IHostSourceItem, Boolean, Boolean)
       at Microsoft.Expression.DesignSurface.Project.SourceItemContext.CreateTextBuffer(Boolean, Boolean)
       at Microsoft.Expression.DesignSurface.DocumentViewContext.CreateDocument(Microsoft.Expression.DesignSurface.Project.ISourceItemContext, System.Threading.CancellationToken, Boolean, Boolean, Boolean)
       at Microsoft.Expression.DesignSurface.DocumentViewContext.OpenDocument(Microsoft.Expression.DesignSurface.Project.ISourceItemContext, System.Threading.CancellationToken, Boolean, Boolean)
       at Microsoft.Expression.DesignSurface.Project.ProjectContextBase.OpenProjectDocument(Microsoft.Expression.DesignSurface.Project.ISourceItemContext, Boolean)
       at Microsoft.Expression.DesignSurface.Project.ProjectContextBase.OpenDocument(System.String, System.String, Boolean)
       at Microsoft.Expression.DesignSurface.UserInterface.ResourcePane.ResourceDictionaryContentProvider.set_ProjectDocument(Microsoft.Expression.DesignSurface.Project.IProjectDocument)
       at Microsoft.Expression.DesignSurface.UserInterface.ResourcePane.ResourceManager.GetContentProviderForResourceDictionary(Microsoft.Expression.DesignSurface.Project.IProjectDocument)
       at Microsoft.Expression.DesignSurface.UserInterface.ResourcePane.DocumentResourceContainer..ctor(Microsoft.Expression.DesignSurface.UserInterface.ResourcePane.ResourceManager, Microsoft.Expression.DesignSurface.Project.IProjectDocument)
       at Microsoft.Expression.DesignSurface.UserInterface.ResourcePane.ResourceManager.AddDocument(Microsoft.Expression.DesignSurface.Project.IProjectDocument)
       at Microsoft.Expression.DesignSurface.UserInterface.ResourcePane.ResourceManager.SetTargetProjectContexts(System.Collections.Generic.IEnumerable`1<Microsoft.Expression.DesignSurface.Project.IProjectContext>)
       at Microsoft.Expression.DesignSurface.UserInterface.ResourcePane.ResourceManager.ProjectContextManager_ProjectContextCreated(System.Object, Microsoft.Expression.DesignSurface.Project.ProjectContextEventArgs)
       at System.EventHandler`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Object, System.__Canon)
       at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.OnProjectContextCreated(Microsoft.Expression.DesignSurface.Project.IProjectContext)
       at Microsoft.Expression.DesignSurface.Project.ProjectContextManager+<>c__DisplayClass4.<GetProjectContext>b__2()
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
       at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
       at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(System.Object)
       at System.Windows.Application.RunInternal(System.Windows.Window)
       at System.Windows.Application.Run(System.Windows.Window)
       at System.Windows.Application.Run()
       at Microsoft.Expression.DesignHost.Isolation.IsolationProcess.RunApplication()
       at Microsoft.Expression.DesignHost.Isolation.IsolationProcess+DesignProcessViewProvider+<>c__DisplayClass7.<applicationView_Activated>b__6()
       at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
       at System.Threading.ThreadHelper.ThreadStart()

    And:

    Fault bucket -1130527478, type 5
    Event Name: MoAppCrash
    Response: Not available
    Cab Id: 0

    Problem signature:
    P1: App.ad707ea70.a594e.a495b.a958e.a8a592bab407a_1.0.0.0_x86_NorthAmerica_8wekyb3d8bbwe
    P2: praid:Designer.App
    P3: 11.0.50727.1
    P4: 5011dba0
    P5: Microsoft.Expression.DesignHost
    P6: 11.0.50727.1
    P7: 5011dbb2
    P8: System.NullReferenceException
    P9: 1b2610
    P10: 

    I'm running Windows 8 RTM 64bit and Visual Studio Ultimate 2012.
    I've tried to change the target to x86/anycpu/x64 without any changes.
    I've not made any changes to the code, it is happening directly after creating any windows 8 store app project type.
    Ordinary wpf xaml-files works fine in other projects.

    Friday, October 19, 2012 7:10 AM

Answers

  • Try running "sfc /scannow" under admin. On my end, I had a few corrupt system files. After rebooting, XDesProc.exe/ExpressionHost doesn't fault anymore


    -Seth

    Wednesday, November 14, 2012 7:37 AM

All replies

  • Did you try and do a repair on visual studio 2012?
    Friday, October 19, 2012 10:39 AM
  • I did an repair on visual studio. Didn't make any difference.
    Yesterday I also uninstalled and then did a fresh install of visual studio. No difference.

    Friday, October 19, 2012 11:23 AM
  • I think I'm having the same problem. MS Visual Studio Express 2012 for Windows Phone, happens whenever I open a XAML document. Repair / reinstall VS doesn't fix the problem. I get this stack trace in Visual Studio whenever I open an XAML document:

    System.InvalidProgramException
    Common Language Runtime detected an invalid program.
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func, CallSynchronizationMode syncMode)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__11(RemoteCancellationToken remoteToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation[TResult](CancellationToken cancelToken, Func`2 func)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)

    Thursday, October 25, 2012 8:33 PM
  • Hi,

    This sounds like a known issue.

    "This issue has been fixed in a future update to Visual Studio and Blend." Please see Unni's reply in this post.http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/1eab0f4e-e18d-4c1b-b644-ba5e8fc947cd

    Best regards,


    Min Zhu [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, October 30, 2012 7:43 AM
    Moderator
  • Hi,

    Sorry, but I do not think these issues are related.
    The exception details are not the same, the other issue had permission issues with folder paths which mine doesn't mention.
    The product was also the beta of the Visual Studio 11, I'm running the RTM.
    And the conditions do not apply, I haven't changed the default installation path and this is a fresh install of Windows 8.

    Regards,

    Christian

    Tuesday, October 30, 2012 8:02 AM
  • Hi Christian,

    I agree, this looks like a different issue, and I would be happy to help. Could you please get in touch with me offline at unnir at Microsoft dot com?

    Thanks!

    Unni


    Unni Ravindranathan, Program Manager, Microsoft Expression This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, October 31, 2012 5:34 AM
  • Hi,

      I'm having a similar exception in my visualstudio2012 only with windowsphone projects. The Xaml Designer throws the following exception:

    System.NullReferenceException
    Object reference not set to an instance of an object.
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func, CallSynchronizationMode syncMode)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__11(RemoteCancellationToken remoteToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation[TResult](CancellationToken cancelToken, Func`2 func)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)

    System.NullReferenceException
    Object reference not set to an instance of an object.

    Server stack trace: 
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject targetObject, Func`1 func)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken)
       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

    Exception rethrown at [0]: 
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass8.<CreateDesignerImpl>b__6(IRemoteDesignerService d)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4`2.<MarshalOut>b__3()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

    System.NullReferenceException
    Object reference not set to an instance of an object.
       at Microsoft.Expression.Platform.PlatformService.PlatformEntry.get_PlatformCreator()
       at Microsoft.Expression.Platform.PlatformService.GetPlatformCreator(String frameworkSpec)
       at Microsoft.Expression.Platform.PlatformService.IsCompatibleFramework(FrameworkName hostFramework, FrameworkName guestFramework)
       at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetProjectContext(IHostProject project, IPlatform platform, Boolean create)
       at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem sourceItem)
       at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__f(CancellationToken cancelToken)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.CallWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__e()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

    I'm thinking to wipe all my windows8 (that is an RTM version) and reinstall a new windows8, visualstudio2012 and windowsphone8 sdk... but is there another solution to this problem?

    Thank in advance

       best regards

           Roberto

    Wednesday, October 31, 2012 7:55 AM
  • Roberto, your issue is a completely different once. See this:

    http://social.msdn.microsoft.com/Forums/en-US/wptools/thread/7398ad5e-c2fc-40a8-85e7-37e6a6cca834

    Basically, you likely had a previous version of the Windows Phone 8 SDK installed causing issues with the final bits, and if the workaround on the thread above did not help, you might have to clean install.

    Thanks,

    Unni 


    Unni Ravindranathan, Program Manager, Microsoft Expression This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, November 01, 2012 4:04 AM
  • Having the same issue. I'm running a clean install of Windows 8 x64 and Visual Studio 2012 Pro. Designer fails in Blend for VS2012 and VS2012 Pro from any Windows Store app project templates.

    I've tried some of the following:

    1. cmd admin ->

    for /f %i in ('findstr /imc:"XAML UI Designer" *.msi') do (start /wait msiexec.exe -qb -x %i VSEXTUI=1) 

    from %windir%\installer directory, followed by a VS2012 repair. After a reboot, the designer in VS worked for a short period but after a short while it faulted again with System.Runtime.InteropServices.COMException.

    2. Uninstalled VS2012 and all it's components and re-installed

    3. Uninstalled and Re-install Windows 8 SDK

    4. Installed VS2012 Update 1 CTP 4 thinking this issue might of been patched

    Compiling and running the app locally or through the emulator is fine. I uploaded two events that get raised for XDesProc.exe, event log: http://sdrv.ms/RxWiJ8

    Pretty frustrating and putting projects on hold, hopefully some resolution arises.


    -Seth


    • Edited by nightdev Friday, November 02, 2012 1:01 AM clarification
    Friday, November 02, 2012 1:00 AM
  • I too am having similar issues but this is really weird. See below

    I insatlled win 8 Pro build 9200 on a virutal machine ( hyper-v ) with up to 16GB RAM

    I have installed VS 2012 Premium on the top and WIN8 hs run some updates.

    I have been desiging fine until I shut down the VM , copied it off as a backup, and then restarted it.

    Now more time than not i get the error.

    Sometimes it works, sometime it load basic apps, sometimes a more convoluted app.

    In one instance i tried to open the same app in two versions, one workd the other not !!

    Help !

    B...

    Wednesday, November 07, 2012 1:38 AM
  • Hello

    Check out this blog post which I recently put together which might help ?

    Are you using IOC / Design time data ?

    http://brucemcmillansblog.wordpress.com/2012/11/08/crashing-visual-studio-2012-xaml-designer-xdesproc-exe-with-design-time-data-on-an-async-call-solved/

    Bruce

    Monday, November 12, 2012 10:58 PM
  • Hi,

    No I'm not using IOC / Design time data. This is a blank project which I haven't modified/added any code to.

    /Christian

    Tuesday, November 13, 2012 7:51 AM
  • I'm experiencing exactly the same issues on a Macbook with Windows 8 RTM running in Bootcamp :(
    Tuesday, November 13, 2012 8:00 PM
  • Try running "sfc /scannow" under admin. On my end, I had a few corrupt system files. After rebooting, XDesProc.exe/ExpressionHost doesn't fault anymore


    -Seth

    Wednesday, November 14, 2012 7:37 AM
  • nightdevs solution worked for me. (sfc /scannow)
    After a reboot the solution worked fine!

    Thanks!

    Wednesday, November 14, 2012 8:52 AM