473,327 Members | 1,976 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,327 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 1758
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.