Visual Studio 2010 Ultimate中的Windows Phone 7 Designer视图错误 [英] Windows Phone 7 Designer view error in Visual Studio 2010 Ultimate

查看:83
本文介绍了Visual Studio 2010 Ultimate中的Windows Phone 7 Designer视图错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对这个设计师的错误感到震惊,有人可以帮我解决这个问题。我使用Visual Studio Express for Windows phone,安装Visual Studio 2010 Ultimate后我得到了这个错误。附加屏幕截图供参考。



注意 - 当执行应用程序时,我们仍然在Win Phone 7模拟器中获得输出。

I got struck with this designer error, can some one help me on this. I was using Visual Studio express for windows phone, after i installed Visual Studio 2010 Ultimate i get this error. Attached screen shot for reference.

Note - When executing the application still we get the output in the Win Phone 7 Emulator.





错误:

未处理的例外已发生



点击此处重新加载设计师



详情:< br $>
System.ArgumentNullException

值不能为空。

参数名称:parentContext

  在Microsoft.Windows.Design.Metadata.ReflectionMetadataContext..ctor(IMetadataContext parentContext)

  在MS.Internal.Host.ProjectMetadataContext..ctor(IMetadataContext platformMetadata,AssemblyReferenceProvider referenceProvider)

  在MS.Internal.Host.ProjectMetadataContext.FromReferences(AssemblyReferenceProvider referenceProvider)

  在MS.Internal.Designer.VSDesigner.GetMetadataForDesignerContext(DesignerContext designerContext)

  在MS.Internal.Host.PersistenceSubsystem.Load()

  在MS.Internal.Host.Designer.Load()

  在MS.Internal.Designer.VSDesigner.Load()

  在MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()

  在MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView视图)

  在MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory,IsolatedView视图)

  在MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory,IsolatedView视图)

  在MS.Internal.Host.Isolation.IsolatedDesigner.Load()

  在MS.Internal.Designer.DesignerPane.LoadDesignerView()



Error:
An Unhandled Exception has occured

Click here to reload the designer

Details:
System.ArgumentNullException
Value cannot be null.
Parameter name: parentContext
   at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext..ctor(IMetadataContext parentContext)
   at MS.Internal.Host.ProjectMetadataContext..ctor(IMetadataContext platformMetadata, AssemblyReferenceProvider referenceProvider)
   at MS.Internal.Host.ProjectMetadataContext.FromReferences(AssemblyReferenceProvider referenceProvider)
   at MS.Internal.Designer.VSDesigner.GetMetadataForDesignerContext(DesignerContext designerContext)
   at MS.Internal.Host.PersistenceSubsystem.Load()
   at MS.Internal.Host.Designer.Load()
   at MS.Internal.Designer.VSDesigner.Load()
   at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()
   at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view)
   at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
   at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
   at MS.Internal.Host.Isolation.IsolatedDesigner.Load()
   at MS.Internal.Designer.DesignerPane.LoadDesignerView()

推荐答案

您好,

您是否在MVAM中使用了xaml中对视图模型的引用?

are you using MVVM with a reference to your view-model in your xaml?

I遇到这个问题一次。一种可能的解决方案是在代码隐藏中引用视图模型。

I run into this issue once. One possible solution is to reference the view-model in code-behind.


这篇关于Visual Studio 2010 Ultimate中的Windows Phone 7 Designer视图错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆