473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Bizarre error editing forms

Don't know which newsgroup this is most suited to.

I have a VB.NET app that has been under development for a few months. I have
edited some of the Designer-generated code, to replace some controls with my
own classes that inherit from the original- but this was quite some time ago
and I've had no problem so far.

This morning I came to edit a form for the first time in a couple of weeks
and got the error

"An error occurred while loading the document. Fix the error, and then try
loading the document again. The error message follows:
Exception from HRESULT: 0x80131019"

A bit of exploration, including reverting the project file to an earlier
revision in case of corruption, reveals that the problem is down to a little
DLL I wrote in C++. If I reference this DLL in my project, even without it
being used in any forms, I am unable to edit any form. Remove the reference,
I can edit again. Put the reference back, the error messages return. I don't
even have to close and reopen the project to see the change. With or without
the reference I can build and run the application fine- the bits of code
that use it are of course commented out in these tests.

I'm using a vanilla .Net Pro 2002. Has anyone the foggiest what is going on?

--
Dr. Craig Graham, Software Engineer
Advanced Analysis and Integration Limited, UK. http://www.aail.co.uk/

Jul 19 '05 #1
1 1759
Craig Graham wrote:
"An error occurred while loading the document. Fix the error, and
then try loading the document again. The error message follows:
Exception from HRESULT: 0x80131019"


Ah.

Just found "Copy Local" in the properties of the reference. Don't know why,
but setting it "false" makes the problem go away. Much easier than
adding/removing the reference as needed!

Anyone know why simply asking it to make a copy of the DLL in the build
directory breaks the form designer?

--
Dr. Craig Graham, Software Engineer
Advanced Analysis and Integration Limited, UK. http://www.aail.co.uk/

Jul 19 '05 #2

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

Similar topics

0
by: Jeff | last post by:
Hey all, Unless I'm being a complete schmuck and missing something obvious, this is one of the strangest problems I've experienced in my 10 years of programming Access. I seem to be unable to...
1
by: Craig Graham | last post by:
Don't know which newsgroup this is most suited to. I have a VB.NET app that has been under development for a few months. I have edited some of the Designer-generated code, to replace some...
1
by: Mikey G | last post by:
Hi, I created a simple VB.NET 2003 application through Visual Studio that connects to a MySQL database and loads a table into a Dataset, and then displays that table information in a DataGrid on a...
1
by: Craig Graham | last post by:
Don't know which newsgroup this is most suited to. I have a VB.NET app that has been under development for a few months. I have edited some of the Designer-generated code, to replace some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...

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.