I have a solution that has multiple projects in it. One is a Windows
Controls Library, and another is a normal windows project. In the
controls project I have created some User Controls that I use on a form
in the normal windows project.
I have found that when I modify a control in the Controls Library that
is used on a form in the normal windows project, I get the following
error if I try to bring the form up in design mode. I get this error
even thought I do a FULL successful rebuild of the solution, and am
able to run the form with no problems. The only way I have found to
fix it is to exit VS and start it again. Once I have done this, the
form will come up in designer with no problem. Below is the error
displayed when first trying to bring up the form.
Does anyone know why I am having this problem? Is there a work around
or a fix? And finally how do I "Retrieve the LoaderExceptions property
for more information."?
One or more errors encountered while loading the designer. The errors
are listed below. Some errors can be fixed by rebuilding your project,
while others may require code changes.
Unable to load one or more of the requested types. Retrieve the
LoaderExceptions property for more information.
Error! Hyperlink reference not valid.
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)
Ray Cassick (Home) - 10 Jan 2006 04:23 GMT
I am just curious but when you set the reference to the control project in
your test project did you set up the reference to the control FILE or to the
project?
>I have a solution that has multiple projects in it. One is a Windows
> Controls Library, and another is a normal windows project. In the
[quoted text clipped - 67 lines]
> System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost
> host)
Rob - 10 Jan 2006 17:50 GMT
I added the reference via Project.
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Eric - 16 Jan 2006 17:31 GMT
I don't have an answer for you but I do have the exact same issue. If you
get a resolution, please pass it along.
Thanks
>I have a solution that has multiple projects in it. One is a Windows
> Controls Library, and another is a normal windows project. In the
[quoted text clipped - 67 lines]
> System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost
> host)
shawn - 22 Jan 2006 17:13 GMT
I have the same problem too as early as this morning. It worked last
night. This morning I made a change to a tab on a user control by
changing its ID which caused no error and the code in the designer was
changed correctly and automatically. I am not sure what else I did but
a later time when I tried to run the designer for that user control, I
got the stupid error. I closed alll forms and designers, etc. existed
and re-entered and it worked. It is very annoying.
> I don't have an answer for you but I do have the exact same issue. If you
> get a resolution, please pass it along.
[quoted text clipped - 72 lines]
> > System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost
> > host)
Jonathan Nix - 25 Jan 2006 01:20 GMT
I think you mean the bug somebody already found a work-around for in the
"User Control Designer Errors is [sic] VS2005 RC1" thread.
Change your AssemblyInfo.cs files in the UserControls DLLs as follows:
[assembly: AssemblyVersion("5.5.5")]
Where 5.5.5 is any hard-coded version number. The problem was the .* in it
causing the UserControl to have an auto-generated version that's different
than what your other DLL is expecting. As soon as you recompile it with
changes or something, you get the Unable to Load error.
BTW - Notice I called it a BUG. I truly believe it's a bug. There's a
rational explanation for what it's doing, but it is bound to cause a little
frustration for a lot of people.
Let me know if it works.
Rob - 25 Jan 2006 23:04 GMT
Works great thank you!!! I figured it was something simple like that.
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com