Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Silverlight
when i try to create silver light application this error appear to me . i use visual studio 2010
 

 

 

 

 
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()</getxmlnamespacecompatibilitymappings>
Posted 22-Mar-12 3:13am
Edited 22-Mar-12 8:00am
v2
Comments
The14thNoah at 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 :)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Member 8699156 at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You need to reinstall Silverlight. First remove and the install this[^]
 
hope it helps Smile | :)
  Permalink  
Comments
Member 8699156 at 23-Mar-12 5:25am
   
thanks soooooooooooooooooooooo much
Uday P.Singh at 23-Mar-12 11:15am
   
welcome! you can accept the answer if it helped you.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

when i try to create silver light application this error errorSystem.NullReferenceException appear to me . i use visual studio 2010
  Permalink  

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

  Print Answers RSS
0 BillWoodruff 360
1 Mathew Soji 309
2 Maciej Los 270
3 DamithSL 225
4 Afzaal Ahmad Zeeshan 202
0 OriginalGriff 6,249
1 Sergey Alexandrovich Kryukov 5,853
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 3,865


Advertise | Privacy | Mobile
Web03 | 2.8.1411019.1 | Last Updated 22 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100