1

我已经开始开发 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()
4

1 回答 1

2

我也遇到过这种情况,所以我刚刚安装了 MS Visual Studio 服务包 1 和 Windows Phone SDK 7.1.1 更新,现在它可以工作了:) 我在这里看到了另一个解决方案,它对我没有帮助,但是它可以帮助别人。

于 2012-05-06T09:03:23.400 回答