Multimobile Development: Building Applications for any Smartphone
cannot open form in forms editor anymore
Messages   Related Types
This message was discovered on microsoft.public.vsnet.ide.


thomas woelfer
GOOD ANSWER
when i try to open a form persisted to a .cs file in visual studio (2003) by double-clicking the file in project view, the forms editor does not display the form anymore.

instead, it displays the following error message:

'An error occurred while loading the document. Fix the error, and thentry loadin the document again. The error message follows: ?'

iow: the complete error message is '?', which is not very helpful.

the config is such that i have a base class form in one project, and derived forms in another project. this worked for the last 2 years or so. since yesterday, i cannot open any of the derived forms anymore. opening the base form is possible. the solution can completely be build. infact, the resulting exe + dll can be run _and_ the form is working just fine.

what could be causing this problem and how to i get my forms back ?

WM_THXADVANCE
thomas woelfer
Reply to this message...
Vote that this is a GOOD answer... (2 votes from other users already)
 
 
    
Les Smith
GOOD ANSWER
My guess is that your .resx file is corrupt. You can rebuid the resx by the
following:

1. In the Solution Explorer, click the Show All Files button.
2. Your form should have a + beside it. Click it and the .resx should show.
Make a copy of the .resx file.
3. Right click on the .resx and delete it.
4. Close the IDE.
5. Restart VS and load your project, the .resx should be ok.

This has worked for me on numerous occassions, but make sure you make a copy
of the resx before deleting it so that you won't be mad at me if this fails.

HTH
Les Smith
http://www.knowdotnet.com

"thomas woelfer" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
> when i try to open a form persisted to a .cs file in visual studio (2003)
by double-clicking the file in project view, the forms editor does not
display the form anymore.
[Original message clipped]

since yesterday, i cannot open any of the derived forms anymore. opening the
base form is possible. the solution can completely be build. infact, the
resulting exe + dll can be run _and_ the form is working just fine.
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer... (2 votes from other users already)
 
 
    
thomas woelfer
GOOD ANSWER
Les,

nope. didn't help. still can't open any of the derived forms. still no error message with some more info in it. ayn other ideas ?

WM_THXADVANCE
thomas woelfer
Reply to this message...
Vote that this is a GOOD answer... (3 votes from other users already)
 
 
 




Multimobile Development: Building Applications for any Smartphone
Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734