Unspecified error on opening a form

H

Hin

I often encounter the following when i try to view the form in VS.NET 2003:

An error occurred while loading the document. Fix the error, and then try
loading the document again. The error message follows:

Unspecified error

Anyone know the possible causes or how to fix this?
Thanks!
 
B

Bruce Wood

This most frequently happens to me when I'm building forms that rely on
classes from other .NET projects (DLLs) that I have built.

If I rebuild the other project(s) but haven't yet recompiled the
projects with the forms in it, then I get errors like this.

It seems to be a problem in the Visual Studio designer: it doesn't cope
very well with referenced dlls being out of date.

I usually close the designer windows and rebuild the project, then open
them again. Usually this resets things so that the designer is happy
again.

Sometimes the designer gets so confused that I have to close all open
windows in the project, rebuild the project, shut down Visual Studio,
start it up again, rebuild the project agian, and then I can usually
use the designer again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top