469,925 Members | 1,493 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,925 developers. It's quick & easy.

"The path is not of a legal form" error - WinFoms designer

Hi

When attempting to view inherited forms in design mode I have been getting
the message "The path is not of a legal form" and am unable to view the
designer.

I can't seem to find any further information on this error - does anyone
know what the problem and resolution might be?

thanks

Richard

--
-----------
Please provide code examples in VB if possible...thanks!
-----------
Feb 24 '06 #1
2 10567
I also get the following error (all of which is very frustrating - I haven't
changed anything in the form design in ages and now I can't view it at all)

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

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
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.DeferredLoadHandler.Micr osoft.VisualStudio.TextManager.Interop.IVsTextBuff erDataEvents.OnLoadCompleted(Int32 fReload)
"Richard Bysouth" wrote:
Hi

When attempting to view inherited forms in design mode I have been getting
the message "The path is not of a legal form" and am unable to view the
designer.

I can't seem to find any further information on this error - does anyone
know what the problem and resolution might be?

thanks

Richard

--
-----------
Please provide code examples in VB if possible...thanks!
-----------

Feb 24 '06 #2
Hi sloth,

Thanks for your post.

It seems that this is a known issue of VS2005, which has been reported by
some other customer. Please refer to the bug link below:
"Bug Details: Unable to load one or more of the requested types. Retrieve
the LoaderExceptions property for more information. "
http://lab.msdn.microsoft.com/Produc...x?feedbackid=6
62d3446-b98a-4159-bb4f-d3403176b1ed

Based on the feedback in this bug link, our product team has fixed this
issue in the feature release. Thanks for your reporting.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Feb 24 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

By using this site, you agree to our Privacy Policy and Terms of Use.