Windows phone 7 Windows phone应用程序运行时错误

Windows phone 7 Windows phone应用程序运行时错误,windows-phone-7,windows-phone,smartphone,silverlight-5.0,Windows Phone 7,Windows Phone,Smartphone,Silverlight 5.0,我已经开始开发Windows Phone应用程序。创建新项目会导致出现以下异常。我不知道可能是什么问题。有人能帮忙吗 System.InvalidProgramException Common Language Runtime detected an invalid program. at System.ComponentModel.TypeConverterAttribute..ctor(Type type) at MS.Internal.Metadata.IntrinsicMet

我已经开始开发Windows Phone应用程序。创建新项目会导致出现以下异常。我不知道可能是什么问题。有人能帮忙吗

System.InvalidProgramException
Common Language Runtime detected an invalid program.
   at System.ComponentModel.TypeConverterAttribute..ctor(Type type)
   at MS.Internal.Metadata.IntrinsicMetadata.AddTypeConverterAttributes()
   at MS.Internal.Metadata.IntrinsicMetadata.get_CustomAttributes()
   at Microsoft.Windows.Design.Platform.SilverlightMetadataContext..ctor()
   at Microsoft.Windows.Design.Platform.SilverlightMetadataContext..ctor(DesignerPlatform platformFactory, Platform blendPlatform)
   at MS.Internal.Platform.SilverlightPlatformImpl.get_MetadataContext()
   at MS.Internal.Platform.SlmPlatformImpl.get_MetadataContext()
   at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.EnsurePlatformInitialized()
   at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.EnsurePlatformInitialized()
   at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(String originalIdentifier, Boolean isGlobal, String identity, FrameworkName frameworkName, AssemblyName appAssemblyName, IVsHierarchy hierarchy)
   at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProviderWorker(String identifier, IServiceProvider provider)
   at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(String identifier, IServiceProvider provider)
   at MS.Internal.Providers.VSDesignerContext.CreateIsolationProvider(IServiceProvider provider, IVsHierarchy hierarchy)
   at MS.Internal.Providers.VSDesignerContext.<>c__DisplayClass1.<Initialize>b__0(IsolationProviderProxy i)
   at MS.Internal.Providers.IsolationProviderProxy.get_RealProvider()
   at MS.Internal.Providers.IsolationProviderProxy.add_UnhandledException(UnhandledExceptionEventHandler value)
   at MS.Internal.Designer.DesignerPane.LoadDesignerView()
System.invalidProgrameException
公共语言运行库检测到无效程序。
at System.ComponentModel.TypeConverterAttribute..ctor(类型类型)
位于MS.Internal.Metadata.IntrinsicMetadata.AddTypeConverterAttributes()处
在MS.Internal.Metadata.IntrinsicMetadata.get_CustomAttributes()处
在Microsoft.Windows.Design.Platform.SilverlightMetadataContext..ctor()上
位于Microsoft.Windows.Design.Platform.SilverlightMetadataContext..ctor(DesignerPlatform平台工厂,平台blendPlatform)
在MS.Internal.Platform.silverlightplatformpl.get_MetadataContext()上
在MS.Internal.Platform.SlmPlatformImpl.get_MetadataContext()中
在MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.EnsurePlatformInitialized()处
在MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.EnsurePlatformInitialized()处
位于MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(字符串原始标识符、布尔值isGlobal、字符串标识、FrameworkName FrameworkName、AssemblyName appAssemblyName、IVsHierarchy层次结构)
位于MS.Internal.Package.VSIsolationProviderService.CreateIsolationProviderWorker(字符串标识符,IServiceProvider提供程序)
位于MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(字符串标识符,IServiceProvider提供程序)
位于MS.Internal.Providers.VSDesignerContext.CreateIsolationProvider(IServiceProvider提供程序,IVsHierarchy层次结构)
在MS.Internal.Providers.VSDesignerContext.c__DisplayClass1.b__0(IsolationProviderProxy i)
在MS.Internal.Providers.IsolationProviderProxy.get_RealProvider()上
在MS.Internal.Providers.IsolationProviderProxy.add_UnhandledException(UnhandledExceptionEventHandler值)处
在MS.Internal.Designer.DesignerPane.LoadDesignerView()上

我也遇到过这种情况,所以我刚刚安装了MS Visual Studio service pack 1和Windows Phone SDK 7.1.1更新,现在它可以正常工作:)
我看到了另一个解决方案,它对我没有帮助,但可能对其他人有帮助。

您能否提供更多详细信息,如您的环境、您是否使用设备或模拟器、您正在使用哪些项目模板等?(我正在使用emulator(windows phone emulator 7)。我找到了解决上述问题的方法。我已重新安装了所有软件,后来它开始工作:):)谢谢您的回复