By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,467 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,467 IT Pros & Developers. It's quick & easy.

Unable to Design Derived Forms

P: n/a

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(StackCra wlMark& stackMark)
at System.Reflection.Assembly.GetTypes() at
Microsoft.VisualStudio.Shell.Design.AssemblyObsole teEventArgs..ctor(Assembly
assembly) at
Microsoft.VisualStudio.Design.VSDynamicTypeService .ReloadAssemblyIfChanged(String
codeBase) at
Microsoft.VisualStudio.Design.VSDynamicTypeService .CreateDynamicAssembly(String
codeBase) at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.get_Assembly()

at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.Search(String
fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly,
String description) at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.SearchProjectEntries(AssemblyName
assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
at Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.GetType(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType
refType) at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionService.GetType(String
name, Boolean throwOnError, Boolean ignoreCase) at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionService.GetType(String
name) at
System.ComponentModel.Design.DesignerHost.System.C omponentModel.Design.IDesignerHost.GetType(String
typeName) at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.EnsureDocument(IDesignerSerializati onManager
manager) at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.PerformLoad(IDesignerSerializationM anager
manager) at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.PerformLoad(IDesignerSer ializationManager
serializationManager) at
System.ComponentModel.Design.Serialization.BasicDe signerLoader.BeginLoad(IDesignerLoaderHost
host)

May 17 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Paul Cheetham wrote:
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.
--
Tom Porterfield

May 17 '06 #2

P: n/a

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

Tom Porterfield wrote:
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.

May 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.