471,337 Members | 888 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Forms not loading pls help!

Ok, I'm a C# newbie.

W/o making any changes to forms themselves, I used to be able to click on a
form and it would open. Now for some forms I'm getting an error saying "An
error occurred while loading the document. Fix the error, and then try
loading the document again."

Can someone give me an idea of what could be wrong?

--B. Cavour
Dec 7 '05 #1
3 1498
Hi,

Is this in the designer?

If so, most probably some .resx files are corrupted , get the correct .resx
file based on the form that does not open, rename it and load the project
again and try to open the form in the designer

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"B. Cavour" <ca*****@thirdhayz.net> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Ok, I'm a C# newbie.

W/o making any changes to forms themselves, I used to be able to click on
a form and it would open. Now for some forms I'm getting an error saying
"An error occurred while loading the document. Fix the error, and then
try loading the document again."

Can someone give me an idea of what could be wrong?

--B. Cavour

Dec 7 '05 #2
Yes it is in the designer.
I tried what you did and it still did not work

It's happening to every form now.

The odd thing is that everything builds and executes correctly

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:eE****************@TK2MSFTNGP09.phx.gbl...
Hi,

Is this in the designer?

If so, most probably some .resx files are corrupted , get the correct
.resx file based on the form that does not open, rename it and load the
project again and try to open the form in the designer

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"B. Cavour" <ca*****@thirdhayz.net> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Ok, I'm a C# newbie.

W/o making any changes to forms themselves, I used to be able to click on
a form and it would open. Now for some forms I'm getting an error saying
"An error occurred while loading the document. Fix the error, and then
try loading the document again."

Can someone give me an idea of what could be wrong?

--B. Cavour


Dec 7 '05 #3
Fixed the problem.

Commented out the InitializeComponent(); from the source and then clicked on
the design. It forced it to compile again. Then I uncommented Init... and
it worked after that.

I still don't know how this problem was started.

Hope this helps someone.
"B. Cavour" <ca*****@thirdhayz.net> wrote in message
news:Od***************@TK2MSFTNGP10.phx.gbl...
Yes it is in the designer.
I tried what you did and it still did not work

It's happening to every form now.

The odd thing is that everything builds and executes correctly

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote in message news:eE****************@TK2MSFTNGP09.phx.gbl...
Hi,

Is this in the designer?

If so, most probably some .resx files are corrupted , get the correct
.resx file based on the form that does not open, rename it and load the
project again and try to open the form in the designer

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"B. Cavour" <ca*****@thirdhayz.net> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Ok, I'm a C# newbie.

W/o making any changes to forms themselves, I used to be able to click
on a form and it would open. Now for some forms I'm getting an error
saying "An error occurred while loading the document. Fix the error,
and then try loading the document again."

Can someone give me an idea of what could be wrong?

--B. Cavour



Dec 7 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Rob | last post: by
4 posts views Thread by Scott Johnson | last post: by
2 posts views Thread by PeteSmith | last post: by
6 posts views Thread by A.Weinman | last post: by
3 posts views Thread by ollebollebagare | last post: by
reply views Thread by rosydwin | last post: by

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.