Unable to Design Derived Forms

P

Paul Cheetham

Hi,

I have moved an application from VS2003 to VS2005, and I am now unable
to view most of my forms in the designer.
The majority of the forms in my project are derived from class PACForm,
(which itself derives from System.Windows.Forms.Form)

Whenever I try to open on of these forms in the designer, I get an
error, stating it is unable to load one or more of the requested types.
(Full text at the bottom of this message)

My PACForm class is contained in the project in it's own source file,
and is not in a Dll.

These work perfectly well in VS2003, but after 'upgrading' (supposedly)
I can't design them.


Can anyone shed any light on this?


Thankyou


Paul Cheetham



-->> Error Message Text:

Unable to load one or more of the requested types. Retrieve the
LoaderExceptions property for more information.
Hide

at System.Reflection.Module.GetTypesInternal(StackCrawlMark& stackMark)
at System.Reflection.Assembly.GetTypes() at
Microsoft.VisualStudio.Shell.Design.AssemblyObsoleteEventArgs..ctor(Assembly
assembly) at
Microsoft.VisualStudio.Design.VSDynamicTypeService.ReloadAssemblyIfChanged(String
codeBase) at
Microsoft.VisualStudio.Design.VSDynamicTypeService.CreateDynamicAssembly(String
codeBase) at
Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly()

at
Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String
fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly,
String description) at
Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName
assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetType(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType
refType) at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String
name, Boolean throwOnError, Boolean ignoreCase) at
Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String
name) at
System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.GetType(String
typeName) at
System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager
manager) 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)
 
T

Tom Porterfield

Paul said:
Hi,

I have moved an application from VS2003 to VS2005, and I am now unable
to view most of my forms in the designer.
The majority of the forms in my project are derived from class PACForm,
(which itself derives from System.Windows.Forms.Form)

Whenever I try to open on of these forms in the designer, I get an
error, stating it is unable to load one or more of the requested types.
(Full text at the bottom of this message)

My PACForm class is contained in the project in it's own source file,
and is not in a Dll.

These work perfectly well in VS2003, but after 'upgrading' (supposedly)
I can't design them.

Can you compile the project that has the PACForm class? It's possibly you
are getting a compile error in that project that prevents the designer from
being able to display any form derived from your PACForm.
 
P

Paul Cheetham

Hi Tom,

It compiles OK, and will even run (apart from some other problems)
It just will not a derived form into the designer.

Thanks.

Paul
 

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

Top