473,387 Members | 1,374 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 ???

thks
JSB
Nov 23 '05 #1
5 63743
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
rob
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
rob
mi****************@gmail.com wrote:
Rob you're an idiot


What the heck is that answer for...

Feb 28 '06 #5
raj

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

1
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...
2
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...
0
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...
1
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...
0
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...
2
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...
4
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...
4
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...
6
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.