【发布时间】:2010-08-16 17:34:38
【问题描述】:
当我使用 Silverlight 4(检查或不检查 WCF RIA 服务)创建一个新的 Silverlight 应用程序(C#,如果这很重要)并在设计器中打开 MainPage.xaml 时,我收到一个未处理的异常。堆栈在下面。这是一个未修改项目。
我已经卸载了所有 Silverlight 并重新安装了上面列出的工具。我打开 App.xaml 文件时也出现同样的错误。当我编译它完成时没有错误,但是当我运行应用程序时,它总是出现未安装 Silverlight。
我在 32 位 Windows XP 机器上安装了 Visual Web Developer Express 2010 (v10.0.30319.1 RTMRel) 和 Silverlight Tools for VS2010 (v10.0.30319.332)。 IDE 在其他方面工作正常,唯一的问题似乎是 xaml 文件。
有人遇到过这个吗?
System.NullReferenceException 你调用的对象是空的。 在 Microsoft.Expression.Platform.Silverlight.SilverlightDomainManager.CreateDomainCore() 在 Microsoft.Expression.Platform.Silverlight.SilverlightDomainManager.CreateDomainInitial() 在 Microsoft.Expression.Platform.Silverlight.SilverlightPlatformCreator.Initialize() 在 MS.Internal.Platform.SilverlightPlatformImpl.Initialize() 在 MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.EnsurePlatformInitialized() 在 MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.EnsurePlatformInitialized() 在 MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(字符串 originalIdentifier,布尔 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()
【问题讨论】:
标签: silverlight-4.0 silverlight-toolkit visual-web-developer