473,951 Members | 7,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form designer problem - cannot load a form

I got this kind of error recently:

When I tried to open a form I got error something like this:
One of more errors encountered while loading the designer. The errors are
listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.

Look at the lines all are referencing the system things such as

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
assembly)
at
Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.ReloadAss emblyIfChanged( String
codeBase)
at
Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.CreateDyn amicAssembly(St ring
codeBase)
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 description)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Search NormalEntries(A ssemblyName
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
name)
at
System.Componen tModel.Design.S erialization.De signerSerializa tionManager.Get Type(String
typeName)
at
System.Componen tModel.Design.S erialization.De signerSerializa tionManager.Sys tem.ComponentMo del.Design.Seri alization.IDesi gnerSerializati onManager.GetTy pe(String
typeName)
at
System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ eExpression(IDe signerSerializa tionManager
manager, String name, CodeExpression expression)
at
System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ eExpression(IDe signerSerializa tionManager
manager, String name, CodeExpression expression)
at
System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ eExpression(IDe signerSerializa tionManager
manager, String name, CodeExpression expression)
at
System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ eExpression(IDe signerSerializa tionManager
manager, String name, CodeExpression expression)
at
System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ eStatement(IDes ignerSerializat ionManager
manager, CodeStatement statement)

Any hints ?
Nov 9 '06 #1
5 2937
There are some things u can do.

1.) rebuild the project and try to open the form
2.) if that fails close VS and open it again
3.) may be there is a bug inside the serialized data in the resx file.
4.) u have a property inside a custom control that needs some other
initialization that the designer can't do

If you have a problem with designer and serialized properties of
costomcontrols see the DesignerSeriali zationVisibilit y attribute.

Nov 9 '06 #2
Hi,

I have tried several times say up to 5 or 6 times close solutions, close VS
and reopen, then it fixed. This error suddenly happened.

For (3), how to figure out what is the bug if ther is any?
For (4), how do I know which properties ?

How to read/see DesignerSeriali zationVisibilit y ?

This is my situation, in my solution I got several projects (DLL), some DLL
will be referenced by other DLL projects (added in the references). I first
encountered it some days ago, then I moved the whole solution in another
folder, reopen the form with no error. However, then sometime later reopened
with error again.

"Roman Wagner" <ro**********@g mail.comwrote in message
news:11******** **************@ h54g2000cwb.goo glegroups.com.. .
There are some things u can do.

1.) rebuild the project and try to open the form
2.) if that fails close VS and open it again
3.) may be there is a bug inside the serialized data in the resx file.
4.) u have a property inside a custom control that needs some other
initialization that the designer can't do

If you have a problem with designer and serialized properties of
costomcontrols see the DesignerSeriali zationVisibilit y attribute.

Nov 9 '06 #3
Serialzationpro blem: look at the resx file generated from designer and
search for serealized data.

If u have a dll that needs an other dll add both to the list of
references

Nov 9 '06 #4
I opened the resx of my form and found only one entry in the table:
FolderBrowserDi alog.

Now the situation getting worse, every form in my current project cannot be
opened, all have errors.
Other projects in my solution are fine opening the forms with no error.

"Roman Wagner" <ro**********@g mail.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
Serialzationpro blem: look at the resx file generated from designer and
search for serealized data.

If u have a dll that needs an other dll add both to the list of
references

Nov 9 '06 #5
I often get spurious errors; in other threads the cure is to close VS,
delete the bin and obj folders, open VS, build the project and voila! the
designer works again. Has never failed me yet.

"Alan T" <al************ *@yahoo.com.auw rote in message
news:OC******** ******@TK2MSFTN GP03.phx.gbl...
>I opened the resx of my form and found only one entry in the table:
FolderBrowserDi alog.

Now the situation getting worse, every form in my current project cannot
be opened, all have errors.
Other projects in my solution are fine opening the forms with no error.

"Roman Wagner" <ro**********@g mail.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
>Serialzationpr oblem: look at the resx file generated from designer and
search for serealized data.

If u have a dll that needs an other dll add both to the list of
references


Nov 10 '06 #6

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

Similar topics

2
2822
by: Yasutaka Ito | last post by:
Hi folks! I have a BaseForm class that inherits System.Windows.Forms.Form. It has a property, whose value I need supplied by the class that inherits it. The BaseForm usees the value supplied into this property in its Load event. So, I gave the BaseForm and the property 'abstract' modifier, and put the implementation of the property in the inherited class; say MyForm. However, when I did this, I no longer can open MyForm in the design...
3
14177
by: Chris | last post by:
Hi, I'm trying to append text from another class to a generic richTextBox that I've added to a Windows form. I can't seem to figure out how to expose the richTextBox to append text to it. Thanks in advance, Chris
3
3384
by: Peter Cresswell | last post by:
Hi guys/gals, I'm using VS.net 2003 and having trouble with the following: I am trying to inherit a base class into a web form, but VS will then not allow me to add any ASP.NET controls using the designer. The base class does derive from System.Web.UI.Page. Here's a code snippet:
7
2808
by: Studio P.M. | last post by:
Dear colleagues, Does anyone have an idea where I could find precise and detailed explanation of each and every statement of the following “Web Form Designer generated code”: #region Web Form Designer generated code override protected void OnInit(aS.EventArgs e) { // // CODEGEN: This call is required by the ASP.NET Web Form Designer.
4
9180
by: Matthew | last post by:
The following code does not hide the form. Any ideas why? Also, is there a workaround? I have VB.NET 2003. I have a system tray icon, and want to have that be the only thing showing when the program starts. Matthew
4
3177
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps further away, completely leaving the selector box area. Any ideas? VS 2003 and VB.Net This is a simple application at the moment but the form is inherited from a
7
3403
by: Terry | last post by:
I have a Mainform with a Statusbar. When opening another form or doing some processing I want to display info in the Statusbar of the Mainform. I have read a lot of articles on this & have come up with the code below. It seems to work(!!!) in that when coding the second form I can see the DisplayStatusMsg of the main form. During debug the code runs through & seemingly executes the call without error. But!...The message is not displayed....
6
2890
by: dbuchanan | last post by:
VS2005 I've been reading all the help I can on the topic (MSDN, other) but I can't make sense of this. Desired behavior; The user is to choose from the displayed list of the databound combobox and the coresponding 'Id' from the lookup table is to be inserted into the field of the new record. I have two simple tables. "tblPerson" is the data table. The lookup
4
5842
by: ThunderMusic | last post by:
Hi, I have a custom form that works fine when I debug it or run it in release mode but cannot be loaded in the designer... Actually, it can be loaded in the designer when no control is on it, but the resizing tool (in the designer) is offset both horizontally and vertically and when I put a control on it, as soon as I save, the designer throws an exception (but cannot be reproduced everytime) and the form cannot be loaded anymore unless...
0
10173
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9994
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
11607
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
10703
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
9906
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 projectplanning, coding, testing, and deploymentwithout 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
7445
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();...
0
6237
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...
1
4968
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4555
muto222
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.