473,497 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
Create 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.Reflection.Module.GetTypesInternal(StackCra wlMark& stackMark)
at System.Reflection.Assembly.GetTypes()
at
Microsoft.VisualStudio.Shell.Design.AssemblyObsole teEventArgs..ctor(Assembly
assembly)
at
Microsoft.VisualStudio.Design.VSDynamicTypeService .ReloadAssemblyIfChanged(String
codeBase)
at
Microsoft.VisualStudio.Design.VSDynamicTypeService .CreateDynamicAssembly(String
codeBase)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.get_Assembly()
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.Search(String
fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly,
String description)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.SearchNormalEntries(AssemblyName
assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
at Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.GetType(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionService.GetType(String
name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionService.GetType(String
name)
at
System.ComponentModel.Design.Serialization.Designe rSerializationManager.GetType(String
typeName)
at
System.ComponentModel.Design.Serialization.Designe rSerializationManager.System.ComponentModel.Design .Serialization.IDesignerSerializationManager.GetTy pe(String
typeName)
at
System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeExpression(IDesignerSeri alizationManager
manager, String name, CodeExpression expression)
at
System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeExpression(IDesignerSeri alizationManager
manager, String name, CodeExpression expression)
at
System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeExpression(IDesignerSeri alizationManager
manager, String name, CodeExpression expression)
at
System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeExpression(IDesignerSeri alizationManager
manager, String name, CodeExpression expression)
at
System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeStatement(IDesignerSeria lizationManager
manager, CodeStatement statement)

Any hints ?
Nov 9 '06 #1
5 2918
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 DesignerSerializationVisibility 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 DesignerSerializationVisibility ?

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**********@gmail.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.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 DesignerSerializationVisibility attribute.

Nov 9 '06 #3
Serialzationproblem: 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:
FolderBrowserDialog.

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**********@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Serialzationproblem: 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.auwrote in message
news:OC**************@TK2MSFTNGP03.phx.gbl...
>I opened the resx of my form and found only one entry in the table:
FolderBrowserDialog.

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**********@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
>Serialzationproblem: 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
2764
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...
3
14140
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. ...
3
3352
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...
7
2769
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...
4
9143
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...
4
3128
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...
7
3364
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...
6
2839
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...
4
5791
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...
0
7120
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
6991
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
7160
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,...
0
7196
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...
1
6878
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...
0
7373
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...
0
1405
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 ...
1
649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
286
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...

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.