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() 
+0

您能否提供更多详细信息,例如您的环境,您是否使用设备或模拟器,您正在使用哪个项目模板等 – 2012-04-05 08:17:00

+0

对于迟到回复抱歉:(我正在使用模拟器(windows phone模拟器7)。我得到了提及问题的解决方案,我已经重新安装了所有的软件,后来得到了工作 – 2012-04-18 06:13:11

+0

:) :)感谢您的回复 – 2012-04-18 06:14:58

回答

2

我也有这样的情况,所以我刚安装MS Visual Studio中的Service Pack 1和Windows Phone SDK 7.1.1更新,现在,它的工作原理:) 我已经看到了另一种解决方案here,它没有帮助我,但它可以帮助别人。

+0

感谢您的回复,这对我更有帮助 – 2012-05-24 10:46:46

相关问题