locked
Visual Studio 2012 RC Metro Application crash in Design Window

    Question

  • Hi! I have an problem in Visual Studio 2012 RC when I create an metro application like this:

    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.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)
       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__DisplayClass2.<CreateDesignerImpl>b__0(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__DisplayClass9.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__8()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass19`1.<MarshalIn>b__18()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

    I'd try many way but I could't fix it! Help me!

    Wednesday, June 20, 2012 6:27 PM

All replies

  • Hi Le,

    Sorry that you are running into these issues with XAML Designer, I can help debug / fix this issue.

    1. Can you share how did you setup our Windows Release Preview / Visual Studio 2012 RC? Is this an upgrade from Windows7?

    2. Are you seeing this issue by creating a default C# Grid / C++ Grid application?

    3. Are you able to F5 default C# Grid application and does it run?

    4. Have you tried the work-around listed on this thread: http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/a40977f2-c7e6-41dd-921d-dc9d9aed01eb ?

    It would be great if I can remote login on your machine and investigate this issue. Please share these details at navits at microsoft dot com and I can help debug this.

    -Navit Saxena

    Wednesday, June 20, 2012 7:01 PM
  • Hi Navit!

    I'm install Windows Release Preview and Visual Studio 2012 RC from ISO image!

    I see this issue on any metro application (C++ and C#).

    It is good when I press F5 to run my project.

    I have tried this work-around but I have fixed this issue not yet!

    Thursday, June 21, 2012 1:57 AM
  • Can I remote login on your machine and look into this? Can you share machine details at navits at microsoft dot com?

    -Navit Saxena

    Thursday, June 21, 2012 2:08 AM
  • How can I share my machine details at Microsoft.com?
    Thursday, June 21, 2012 2:19 AM
  • If you can directly get in touch with us, that will help. We can share some diagnostic information, and it would be easier to talk over e-mail. We will need access to the machine, only if we cannot get anywhere with our initial diagnosis.

    You can email navits at microsoft dot com, or 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.

    Thursday, June 21, 2012 4:02 AM
  • Thanks Navit and Unni! I'd uninstall and install again then it's works normally!

    But I hope the final version of VS2012 will comming soon! Thank you very much!

    PS: When I install both of VS2012 RC full version and VS2012 Express RC version then it works. I don't understand that!  

    Thursday, June 21, 2012 5:11 AM
  • Just so we understand the root cause, and can fix it, it would be great if you could describe in detail what sequence you installed things. Something like:

    Installed Windows 8 Release Preview on a brand new machine (or was this an upgrade from Windows 7)
    Installed Visual Studio 2012 RC Ultimate on the default drive

    etc.

    Thanks Le!


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

    Thursday, June 21, 2012 5:38 AM
  • I install Windows 8 Release Review(x86) like a new OS, not Upgrade from Windows 7!

    I'd installed VS2012 RC in defaulr drive (C/Program Files/Visual Studio 11.0)

    Link down VS2012 RC: http://download.microsoft.com/download/6/9/7/697096F6-4EEA-4704-AF2D-F3BAF57C7634/VS2012_RC_ULT_ENU.iso

    And I'd installed Visual Studio 2010 Ultimate in the same drive (C/Program Files/Visual Studio 10.0).

     
    Thursday, June 21, 2012 6:35 AM
  • Thanks! Does not seem that you are doing anything fancy.

    How are you logged to the computer - are you domain joined, joined via Windows Live account, have multiple accounts on the computer, Administrator, etc?


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

    Friday, June 22, 2012 3:13 AM
  • My computer has 1 User for me and 1 account as Administrator. I logged of to the computer with user account!

    I also use Window live account to logged to Games for Windows Marketplace!

    Friday, June 22, 2012 7:27 AM
  • you have to upgrade your visual studio 2012,because sometimes some errors occur in installation and the upgrade version of visual studio solves your problem. you install july update to overcome this problem,.

    Anum Shaukat

    Saturday, September 29, 2012 2:06 AM