Porting Form /User control Vs.net 2003 to vs.net 2005

S

Suresh Kumar

Hello,

I am having problem while converting vs.net 2003 solution to vs.net 2005.

Form or User control requires separate code behind file in vs.net 2005(ie.
Form.Designer.cs).

When I'm opening my Form or User Control in designer view i get following
error. Any comments?
--- object reference not set to instance of object.
at
System.Resources.Tools.StronglyTypedResourceBuilder.DefineResourceFetchingPr
operty(String propertyName, String resourceName, ResourceData data,
CodeTypeDeclaration srClass, Boolean internalClass, Boolean useStatic)
at
System.Resources.Tools.StronglyTypedResourceBuilder.InternalCreate(Dictionar
y`2 resourceList, String baseName, String generatedCodeNamespace, String
resourcesNamespace, CodeDomProvider codeProvider, Boolean internalClass,
String[]& unmatchable)
at System.Resources.Tools.StronglyTypedResourceBuilder.Create(IDictionary
resourceList, String baseName, String generatedCodeNamespace, String
resourcesNamespace, CodeDomProvider codeProvider, Boolean internalClass,
String[]& unmatchable)
at System.Resources.Tools.StronglyTypedResourceBuilder.Create(IDictionary
resourceList, String baseName, String generatedCodeNamespace,
CodeDomProvider codeProvider, Boolean internalClass, String[]& unmatchable)
at Microsoft.VisualStudio.Design.Serialization.ResXGlobalObject.BuildType()
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObject.GetObjectType()
at Microsoft.VisualStudio.Shell.Design.GlobalType.get_ObjectType()
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObject.get_Children()
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObjectProvider.CreateG
lobalObjectsForItem(ProjectItem item, GlobalObjectCollection oldObjects,
GlobalObjectCollection newObjects, ITypeResolutionService typeResolver)
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObjectProvider.CreateG
lobalObjects(Project project)
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObjectProvider.GetGlob
alObjectsCore(Project project, Type baseType)
at
Microsoft.VisualStudio.Shell.Design.GlobalObjectProvider.GetGlobalObjects(Pr
oject project, Type baseType)
at
Microsoft.VisualStudio.Shell.Design.GlobalObjectService.GetGlobalObjects(Typ
e baseType)
at
Microsoft.VisualStudio.Shell.Design.GlobalObjectService.GetGlobalObjects()
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionS
ervice.GetTypeFromGlobalObjects(String name, Boolean throwOnError, Boolean
ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionS
ervice.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionS
ervice.GetType(String name, Boolean throwOnError)
at System.Resources.ResXDataNode.ResolveType(String typeName,
ITypeResolutionService typeResolver)
at System.Resources.ResXDataNode.GenerateObjectFromDataNodeInfo(DataNodeInfo
dataNodeInfo, ITypeResolutionService typeResolver)
at System.Resources.ResXDataNode.GetValue(ITypeResolutionService
typeResolver)
at System.Resources.ResXResourceReader.ParseDataNode(XmlTextReader reader,
Boolean isMetaData)
at System.Resources.ResXResourceReader.ParseXml(XmlTextReader reader)
at System.Resources.ResXResourceReader.EnsureResData()
at System.Resources.ResXResourceReader.GetMetadataEnumerator()
at
System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.Seriali
zationResourceManager.GetMetadata()
at
System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.Seriali
zationResourceManager.GetMetadataEnumerator()
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Deserialize
PropertiesFromResources(IDesignerSerializationManager manager, Object value,
Attribute[] filter)
at
System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize
(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at
System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad
(IDesignerSerializationManager manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.
PerformLoad(IDesignerSerializationManager serializationManager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.
DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
DataEvents.OnLoadCompleted(Int32 fReload)
 
N

Nicholas Paldino [.NET/C# MVP]

Suresh,

How did you perform the conversion? The Designer.cs file is not
required, AFAIK. Did you use the conversion tool that VS.NET 2005 provides
for projects, or did you use another method?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Suresh Kumar said:
Hello,

I am having problem while converting vs.net 2003 solution to vs.net 2005.

Form or User control requires separate code behind file in vs.net 2005(ie.
Form.Designer.cs).

When I'm opening my Form or User Control in designer view i get following
error. Any comments?
--- object reference not set to instance of object.
at
System.Resources.Tools.StronglyTypedResourceBuilder.DefineResourceFetchingPr
operty(String propertyName, String resourceName, ResourceData data,
CodeTypeDeclaration srClass, Boolean internalClass, Boolean useStatic)
at
System.Resources.Tools.StronglyTypedResourceBuilder.InternalCreate(Dictionar
y`2 resourceList, String baseName, String generatedCodeNamespace, String
resourcesNamespace, CodeDomProvider codeProvider, Boolean internalClass,
String[]& unmatchable)
at System.Resources.Tools.StronglyTypedResourceBuilder.Create(IDictionary
resourceList, String baseName, String generatedCodeNamespace, String
resourcesNamespace, CodeDomProvider codeProvider, Boolean internalClass,
String[]& unmatchable)
at System.Resources.Tools.StronglyTypedResourceBuilder.Create(IDictionary
resourceList, String baseName, String generatedCodeNamespace,
CodeDomProvider codeProvider, Boolean internalClass, String[]&
unmatchable)
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObject.BuildType()
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObject.GetObjectType()
at Microsoft.VisualStudio.Shell.Design.GlobalType.get_ObjectType()
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObject.get_Children()
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObjectProvider.CreateG
lobalObjectsForItem(ProjectItem item, GlobalObjectCollection oldObjects,
GlobalObjectCollection newObjects, ITypeResolutionService typeResolver)
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObjectProvider.CreateG
lobalObjects(Project project)
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObjectProvider.GetGlob
alObjectsCore(Project project, Type baseType)
at
Microsoft.VisualStudio.Shell.Design.GlobalObjectProvider.GetGlobalObjects(Pr
oject project, Type baseType)
at
Microsoft.VisualStudio.Shell.Design.GlobalObjectService.GetGlobalObjects(Typ
e baseType)
at
Microsoft.VisualStudio.Shell.Design.GlobalObjectService.GetGlobalObjects()
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionS
ervice.GetTypeFromGlobalObjects(String name, Boolean throwOnError, Boolean
ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionS
ervice.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionS
ervice.GetType(String name, Boolean throwOnError)
at System.Resources.ResXDataNode.ResolveType(String typeName,
ITypeResolutionService typeResolver)
at
System.Resources.ResXDataNode.GenerateObjectFromDataNodeInfo(DataNodeInfo
dataNodeInfo, ITypeResolutionService typeResolver)
at System.Resources.ResXDataNode.GetValue(ITypeResolutionService
typeResolver)
at System.Resources.ResXResourceReader.ParseDataNode(XmlTextReader reader,
Boolean isMetaData)
at System.Resources.ResXResourceReader.ParseXml(XmlTextReader reader)
at System.Resources.ResXResourceReader.EnsureResData()
at System.Resources.ResXResourceReader.GetMetadataEnumerator()
at
System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.Seriali
zationResourceManager.GetMetadata()
at
System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.Seriali
zationResourceManager.GetMetadataEnumerator()
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Deserialize
PropertiesFromResources(IDesignerSerializationManager manager, Object
value,
Attribute[] filter)
at
System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize
(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at
System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad
(IDesignerSerializationManager manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.
PerformLoad(IDesignerSerializationManager serializationManager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.
DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
DataEvents.OnLoadCompleted(Int32 fReload)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

inherited user control 4

Top