Home > Archive > Visual Studio > January 2006 > Loader Exceptions in VS 2005 Express
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Loader Exceptions in VS 2005 Express
|
|
| Eric Borden 2005-12-11, 7:18 pm |
| I recently switched from VS 2002 to VS 2005 and now I'm having difficulties.
The issue comes with controls I have created within my project and then
try to drag them onto a form desinger. For every control I have made,
I get LoaderExceptions that prevent me from using the control.
And along the same lines, any dialog that had already utilized any of
my controls fails to load the desinger for the dialog.
I can however, successfully place the common windows controls.
The list of errors is quite large and I would be unable to copy it here but
the error
I get from the designer is:
"Unable to load one or more of the requested types. Retrieve the
LoaderExceptions property
for more information."
Any help would be greatly appreciated.
Sincerely,
Eric
| |
| Jonathan Nix 2006-01-24, 9:58 pm |
| 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.
|
|
|
|
|