Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i try to create silver light application this error appear to me . i use visual studio 2010









System.NullReferenceException<br />
Object reference not set to an instance of an object.<br />
   at Microsoft.Windows.Design.Platform.SilverlightMetadataContext.SilverlightXamlExtensionImplementations.<getxmlnamespacecompatibilitymappings>d__8.MoveNext()<br />
   at MS.Internal.Design.Metadata.ReflectionProjectNode.BuildSubsumption()<br />
   at MS.Internal.Design.Metadata.ReflectionProjectNode.SubsumingNamespace(Identifier identifier)<br />
   at MS.Internal.Design.Markup.XmlElement.BuildScope(PrefixScope parentScope, IParseContext context)<br />
   at MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement parent, PrefixScope parentScope, IParseContext context, IMarkupSourceProvider provider)<br />
   at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.FullParse(Boolean convertToXamlWithErrors)<br />
   at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.get_RootItem()<br />
   at Microsoft.Windows.Design.DocumentModel.Trees.ModifiableDocumentTree.get_ModifiableRootItem()<br />
   at Microsoft.Windows.Design.DocumentModel.MarkupDocumentManagerBase.get_LoadState()<br />
   at MS.Internal.Host.PersistenceSubsystem.Load()<br />
   at MS.Internal.Host.Designer.Load()<br />
   at MS.Internal.Designer.VSDesigner.Load()<br />
   at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()<br />
   at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view)<br />
   at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)<br />
   at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)<br />
   at MS.Internal.Host.Isolation.IsolatedDesigner.Load()<br />
   at MS.Internal.Designer.DesignerPane.LoadDesignerView()</getxmlnamespacecompatibilitymappings>
Posted
Updated 22-Mar-12 7:00am
v2
Comments
The14thNoah 15-May-14 4:54am    
I also encountered this error after I installed VS2012 in my pc. . can anybody tell/give suggest on how to fixed this error?
thanks in advance :)

when i try to create silver light application this error errorSystem.NullReferenceException appear to me . i use visual studio 2010
 
Share this answer
 
You need to reinstall Silverlight. First remove and the install this[^]

hope it helps :)
 
Share this answer
 
Comments
Member 8699156 23-Mar-12 5:25am    
thanks soooooooooooooooooooooo much
Uday P.Singh 23-Mar-12 11:15am    
welcome! you can accept the answer if it helped you.
Too little info but let me try to think:

Looks like you are calling MoveNext() without checking for range. the movenext when called on limiting value will result in NullReferenceException as there is nothing left to move to.

check for boundary values and it should go away.
 
Share this answer
 
Comments
Member 8699156 22-Mar-12 9:07am    
thanks but i did not write any code it is appear just when i create new project
in the mainpage in the design mode

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900