Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / November 2005

Tip: Looking for answers? Try searching our database.

Can't open VS2003 Form with VS2005 form designer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ThomasBechter - 16 Nov 2005 18:14 GMT
Hi,
i converted a C# application to VS2005 and .net v2.0. The application is
running perfect. I have only problems to edit my forms in the form designer.

I get the following error message:
Object reference not set to an instance of an object.

at
System.Resources.Tools.StronglyTypedResourceBuilder.DefineResourceFetchingProperty(String
propertyName, String resourceName, ResourceData data, CodeTypeDeclaration
srClass, Boolean internalClass, Boolean useStatic)
at
System.Resources.Tools.StronglyTypedResourceBuilder.InternalCreate(Dictionary`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.CreateGlobalObjectsForItem(ProjectItem
item, GlobalObjectCollection oldObjects, GlobalObjectCollection newObjects,
ITypeResolutionService typeResolver)
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObjectProvider.CreateGlobalObjectsForItem(ProjectItem
item, GlobalObjectCollection oldObjects, GlobalObjectCollection newObjects,
ITypeResolutionService typeResolver)
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObjectProvider.CreateGlobalObjects(Project project)
at
Microsoft.VisualStudio.Design.Serialization.ResXGlobalObjectProvider.GetGlobalObjectsCore(Project project, Type baseType)
at
Microsoft.VisualStudio.Shell.Design.GlobalObjectProvider.GetGlobalObjects(Project project, Type baseType)
at
Microsoft.VisualStudio.Shell.Design.GlobalObjectService.GetGlobalObjects(Type
baseType)
at Microsoft.VisualStudio.Shell.Design.GlobalObjectService.GetGlobalObjects()
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetTypeFromGlobalObjects(String
name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name, Boolean throwOnError)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.GetType(ITypeResolutionService trs, String name, Dictionary`2 names)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.FillStatementTable(IDesignerSerializationManager
manager, IDictionary table, Dictionary`2 names, CodeStatementCollection
statements, String className)
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
System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)

Is it possible to get more detailed information whats going wrong?

Thanks in advance,
Thomas
"Gary Chang[MSFT]" - 17 Nov 2005 06:31 GMT
Hi Thomas,

Based on the error message, it appears some resource and
components/controls which are consumed by your .NET 1.1 form cannot not be
instantiated in the VS2005 form designer, I suggest you can perform some
research in this way first.

By the way, is it possible to upload a small self-alone sample
project(zipped) to us for repro, you can send it to me directly(please
remove the "online" of my email address alias).

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
ThomasBechter - 17 Nov 2005 15:17 GMT
Hi Gary,
thanks for your advice. The problem was a string named "$this.Name" in the
resx file. I removed it and now the form designer works for this form.

Thanks,
Thomas

> Hi Thomas,
>
[quoted text clipped - 20 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Gary Chang[MSFT]" - 18 Nov 2005 02:58 GMT
That's great, Thomas, I am delight to know you found the bug:)

Good Luck!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.