2012-04-02 59 views
1

每當我打開我的Visual Studio 2010 Silverlight設計器的xaml我得到這個錯誤。Silverlight設計師錯誤

System.NullReferenceException未將對象引用設置爲對象的實例。 Microsoft.Expression.Platform.Silverlight.SilverlightDomainManager.CreateDomainCore()at Microsoft.Expression.Platform.Silverlight.SilverlightDomainManager.CreateDomainInitial()at Microsoft.Expression.Platform.Silverlight.SilverlightPlatformCreator.Initialize()at MS.Internal.Platform.SilverlightPlatformImpl .Initialize()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 MS.Internal MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(String identifier,IServiceProvider provider)at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProviderWorker(String identifier,IServiceProvider provider)處的身份,FrameworkName框架名稱, rnal.Providers.VSDesignerContext.CreateIsolationProvider(IServiceProvider provider,IVsHierarchy hierarchy)at MS.Internal.Providers.VSDesignerContext。 <> c_DisplayClass1.b_0(IsolationProviderProxyⅰ)MS.Internal.Providers.IsolationProviderProxy.get_RealProvider()在MS.Internal.Providers.IsolationProviderProxy.add_UnhandledException(UnhandledExceptionEventHandler值)MS.Internal.Designer.DesignerPane.LoadDesignerView()

注意: - 我看到很多參考在網上&在計算器。沒什麼爲我工作。

+0

看來它是一個微軟expressinon融合問題。您最近是否在Microsoft Expression Blend中打開了您的XAML,如果是這樣,請檢查您的參考。這似乎有一些Blend DLL的缺失。 – 2012-04-02 10:17:17

+0

這裏沒有辦法,我不是在談論Expression Blend。 – 2012-04-02 20:30:45

回答

0

我不知道,如果你得到的答案還是看不到,但我也有類似的問題了一段時間回來,這裏是我做了什麼

  1. 轉到添加/刪除程序。
  2. unistall兩個silverlight組件。即Silverlight和它的SDK
  3. Download此文件並安裝它。
  4. 重新啓動Visual Studio,現在應該可以正常