2013-08-20 106 views
0

我對Silver Light應用程序非常新穎。當我試圖創建一個Silverlight應用程序,我在炫魅設計Silverlight應用程序中MainPage的錯誤

System.NullReferenceException 
Object reference not set to an instance of an object. 
    at Microsoft.Windows.Design.Platform.SilverlightMetadataContext.SilverlightXamlExtensionImplementations.<GetXmlNamespaceCompatibilityMappings>d__8.MoveNext() 
    at MS.Internal.Design.Metadata.ReflectionProjectNode.BuildSubsumption() 
    at MS.Internal.Design.Metadata.ReflectionProjectNode.SubsumingNamespace(Identifier identifier) 
    at MS.Internal.Design.Markup.XmlElement.BuildScope(PrefixScope parentScope, IParseContext context) 
    at MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement parent, PrefixScope parentScope, IParseContext context, IMarkupSourceProvider provider) 
    at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.FullParse(Boolean convertToXamlWithErrors) 
    at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.get_RootItem() 
    at Microsoft.Windows.Design.DocumentModel.Trees.ModifiableDocumentTree.get_ModifiableRootItem() 
    at Microsoft.Windows.Design.DocumentModel.MarkupDocumentManagerBase.get_LoadState() 
    at MS.Internal.Host.PersistenceSubsystem.Load() 
    at MS.Internal.Host.Designer.Load() 
    at MS.Internal.Designer.VSDesigner.Load() 
    at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load() 
    at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view) 
    at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) 
    at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) 
    at MS.Internal.Host.Isolation.IsolatedDesigner.Load() 
    at MS.Internal.Designer.DesignerPane.LoadDesignerView() 

得到一個錯誤,任何一個能提供我一個解決方案。我使用Silverlight 5,VS 2010,.Net框架4

回答

0

親愛的所有

我發現在安裝和卸載花了幾個小時後的溶液Silverlight的不同版本。

Follow the Steps for the solution 

Step1: Uninstall all the things related to Silverlight 
Step2: Install the Silverlight4.0 
Step3: Install Silverlight3 SDK 

現在打開該項目,可能有機會瀏覽器索要最新的Silverlight版本。 >>但忽視這一點。

+0

我想知道您是否通過查看我建議的文章找到它......只是說... –

相關問題