473,769 Members | 2,019 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Unable to load one or more of the requested types. Retrieve the LoaderException s 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
LoaderException s 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 LoaderException s property for more information."

can someone help me ???

thks
JSB
Nov 23 '05 #1
5 63805
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.re sx 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
342
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 from another fello employee. I loaded the SLN file and got an error on load about it no being able to find the web server. I manually added it to IIS and the reopened it. Now the error I get is "unable to get the project fil from the web server"....
2
19436
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 entered as the event property setting produced the following error: Syntax error. *The expression may not result in the name of a macro, the name of a user
0
2988
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 binding 'controllerSoapBinding' from namespace 'http://Bla-Bla-Bla'. Unable to import operation 'getClient'. The datatype 'Array' is missing. " Some problem when I try to use wsdl.exe tool in .NET. I get: Schema validation warning: Type 'cww:Class' is...
1
4016
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 creating many public properties on the form to do the same thing. At first I tried returning a DataViewRow. This worked fine until I reached the phone field on the parent table and the code Child form public DataRowView SelectedAddres ge ...
0
1260
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 out that this is a known issue. The recommendations I've seen indicate I should add either the Page directive "Reference Control" or "Register" to the aspx file. I checked all my files and they all have the "Reference Control" directive (I think...
2
45460
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 exception is thrown with the message: "Exception has been thrown by the target of an invocation." ?ex.Source "mscorlib" ?ex.GetType.AssemblyQualifiedName "System.Reflection.TargetInvocationException, mscorlib, Version=1.0.5000.0,
4
5568
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 Help!
4
2462
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 have a class method that's building an array of user-defined structures (see below), and returning that array to the calling routine. I'm getting the error on that calling line. The structure in both the webform and class are defined like this:
6
13690
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 use the Windows Explorer to go on the FTP-URI and this always works. So the problem should come from my app. my simplified code: Private m_oFTP As FtpWebRequest Private oResponseDir As FtpWebResponse = Nothing
0
9579
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9420
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10205
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9851
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8863
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2811
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.