472,993 Members | 2,555 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 software developers and data experts.

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

hi there

i have this error in VS2005 DEV Edition

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

i have create an windows forms application (exe) and in the same project i
have create 2 forms

form1 and form2 , and form2 inherits from form 1.
in the form1 designer it looks ok, but when i open form2 designer ... not ok
it throws this error "Unable to load one or more of the requested types.
Retrieve the LoaderExceptions property for more information."

can someone help me ???

Nov 23 '05 #1
5 63695
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.

Happy coding!
Jan 25 '06 #2
This does not work for me. Actually the user control is not in a dll
but in the very same project. Therefore, I don't see that versioning
can be the problem. This thing is like SUPER annoying. Here is MS
claiming how much productive developers can be but stuff like that
wastes like so much time. Anybody has a real fix for this?

Feb 1 '06 #3
Rob you're an idiot

Feb 27 '06 #4
mi****************@gmail.com wrote:
Rob you're an idiot

What the heck is that answer for...

Feb 28 '06 #5

Workaround Description:
You would come across this error while trying to view a user control in
the design time that has third party controls in it. ( eg: sync fusion
control). The user control should render fine if it is built using the
regular windows controls.
Reason:- Whenever you create a user control, the .net framework
searilizes the controls into XML (resx file). The new versions of
visual studio (eg: VS2005) will be able to deserealize only the user
controls that are built using the regular windows controls in the
previous version (eg: VS2003). But it will not be able to deserealize
the resx files of third party user control. So all you need to do to
fix the problem is to recreate the resx files for the user controls
with the new version of visual studio.

Workaround Steps:
Heres how you do it.

1. Open windows explorer and go to the folder containing your third
party user controls.

2. Look for the resx file associated with your user control and rename
it (eg: userControl1.resx to userControlOld.resx). You will not need
the renamed resx files but you have it just in..

3. Open your visual studio project/solution and click on "Show all
files" icon on the top.

4. Delete the .resx file for your user control and you should be able
to see your user control in the designer.

5. To recreate the new resx file, try to make some changes to your user
control in the design view(like move a control etc) which will force it
to recreate the new resx file.

Raj Behra

Mar 10 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: bradeck | last post by:
OK, after searching on the web for half a day on this and findin solutions that were not working, please advise. BTW - the cache cleanu didn't work. I am use VS 2003 and checked out a project...
by: Michelle | last post by:
Hello all, I recently inherited a SQL 7.0 Server db accessed by a 2000 Access interface. When I try to open "Shipping Check Out" I am greeted with the following: The expression On Load you...
by: maxim mat | last post by:
Hi I need to build client for web service. But when I'm using Visual Studio .NET to add Web Reference, I get error: "Custom tool error: Unable to import WebService/Schema. Unable to import...
by: John Chorlton | last post by:
I've been attempting to pass a chunk of data back from a child Windows form using public properties on the form and have been getting some odd errors. I wanted to return a row of data to avoid...
by: Amil | last post by:
I've upgrade to VS 2005. I have several pages that dynamically load user controls; I get an exception like: "Unable to cast object of type 'ASP.xxxxx' to type" I've investigated and found...
by: Eugene | last post by:
Hi, I have a problem when loading one of my dll. I have a main class that would load a winform in another dll using reflection. When I load it using Assembly.CreateInstance(DLLName.DLLFormName), an...
by: Kuldeep | last post by:
Hi All, ..NET Framework - 1.0 ASP.NET Everytime I open my open, I get this error message "Unable to load one or more breakpoints" Even after this, I can build my application and run Please...
by: JackBlack | last post by:
Hi, all! Need a little help tracking down a runtime error problem. I'm getting this error: "Unable to cast object of type 'myStruct' to type 'myStruct'... but the two types are identical! I...
by: Patrick.Simons | last post by:
I try to connect a FTPWebRequest through Proxy and VPN to a remote FTP- server. Sometimes it works sometimes not. When my VB.Net-App (2005) returns the error on the GetResponse-Method, I'll try to...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.