473,729 Members | 2,142 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WindowsForms LoaderException

My app has a base Form class, called FunctionForm, from which all forms inherit.
This worked fine last week, when I was using VS.NET 2005 Pro but this week,
while using VS.NET 2005 Team System Developer, I get the following while
working in the designer. The form compiles and runs fine, but I can't design
it. Firstly, is the stack trace the LoaderException s property? Secondly,
how do I approach a work around?

Unable to load one or more of the requested types. Retrieve the LoaderException s
property for more information.

at System.Reflecti on.Module.GetTy pesInternal(Sta ckCrawlMark& stackMark)
at System.Reflecti on.Assembly.Get Types()
at Microsoft.Visua lStudio.Shell.D esign.AssemblyO bsoleteEventArg s..ctor(Assembl y
at Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.ReloadAss emblyIfChanged( String
at Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.CreateDyn amicAssembly(St ring
at Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.get_Ass embly()
at Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.Search( String
fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, String
at Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Search ProjectEntries( AssemblyName
assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
at Microsoft.Visua lStudio.Design. VSTypeResolutio nService.GetTyp e(String typeName,
Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)
at Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution Service.GetType (String
name, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution Service.GetType (String
at System.Componen tModel.Design.D esignerHost.Sys tem.ComponentMo del.Design.IDes ignerHost.GetTy pe(String
at System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.EnsureDocu ment(IDesignerS erializationMan ager
at System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.PerformLoa d(IDesignerSeri alizationManage r
at Microsoft.Visua lStudio.Design. Serialization.C odeDom.VSCodeDo mDesignerLoader .PerformLoad(ID esignerSerializ ationManager
serializationMa nager)
at System.Componen tModel.Design.S erialization.Ba sicDesignerLoad er.BeginLoad(ID esignerLoaderHo st
Dec 8 '05 #1
1 5664
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.
Jan 25 '06 #2

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

Similar topics

by: n3crius | last post by:
I've noticed that when I'm programming Windows applications in the .net sutdio I can't see an expansion option in the Solution Explorer to get the .cs behind the WindowsForm. In contrast, I can get the code behind an aspx in the Explorer pretty easily. I know I can select 'View Code' etc but it's like, I don't want to have to do this, I want the .cs for a form right there, ready to play with, in code view. Any ideas? --
by: Toma Marinov | last post by:
Where I can download .bmp for WindowsForms buttons /and .ico too/ ? 10x!
by: Matt Osborne | last post by:
Good afternoon all! I am wondering if it is possible to somehow host ASP.Net inside an executable or do something similar. I am wanting create a UI similar to that of TurboTax or Microsoft Money or any of the other growing number of applications that rely on a UI that is similar to a webpage. I would like to be able to design the UI and render the UI as HTML for ease of updating and changing via CSS. I have seen some information about...
by: Toma MArinov | last post by:
Hello ! First excuse me for my not very well English ! My question is : Can I use WebServices from WindowsForms Application ? Application will run in LAN and WebServices will be on the local server... If I can do this - can you tell me some guide-lines ? Thank you !
by: Hans | last post by:
Hi! I'm building a windowsapplication with several windowsforms including a MDI-parent with MDIchildren. They are all belonging to the same namespace. Each windowsform has its own connectionstring connecting up to one SQL-server. This is created every time I configure a sqlDataAdapter if there isn't a connectionstring from before. It works fine for my purpose, but I find it bothersome when I decide to take the application home and...
by: Mike Lopez | last post by:
Hello. For an Intranet application, what would be some reasons to use ASP.Net and NOT use WindowsForms? I can't think of any. Thanks in advance, Mike
by: Jon Gabel | last post by:
I have a WindowsForms application that communicates via TCP/IP or SNMP (using IP*Works components) with various devices on my local network. I would like to duplicate the same functionality in a WebForms application. Instead of running a native Windows application, the user would use a browser linked via http or https to a server running the equivalent ASP.NET app. How can I get access to the locally networked devices if I use this...
by: PHether | last post by:
SO, I have a WindowsForms based Usercontrol being hosted in a ASP.NET page using the <object> tag method. What I am trying to do now is have that control access the Session object of the ASP.NET page. If possible I would like to be able to do this without having to use the <param> tags to pass data into the usercontrol. Is this possible? Thank You,
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...
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,...
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...
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...
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...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.