locked
Unhandled exception occurs when loading design view (Visual Studio 2012 Premium) RRS feed

  • Question

  • Edit: 

    Found a workaround for this issue here here.

    Posted by Microsoft on 11.09.2012 at 14:05

    We have seen similar stack traces from other users. Are you referencing a .Net 2.0 assembly in your project? Unfortunately designer is not able to handled types from older (.Net 2.0) assemblies and that is causing the designer to crash. 
    Can you please try removing any .Net 2.0 assemblies and see if that fixes it.

    After I installed the new Visual Studio 2012 Premium the design view fails to load on all xaml-files. 

    This is the message:

    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)

    I have tried uninstall/reinstall. Anyone experiencing similar problems? Any clues to how I should fix this?


    • Edited by teregg Wednesday, December 5, 2012 1:15 PM
    Friday, August 17, 2012 10:01 AM

All replies

  • I am also having the same problem but not getting any good solution.
    Sunday, November 18, 2012 4:06 AM
  • Same type of issue here. No solution so far?

    Kjaps

    Wednesday, December 5, 2012 12:57 PM