473,387 Members | 1,897 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,387 software developers and data experts.

Error Message

I developed two COM classes in a single VB.Net (2002) project and used the
"Build Solution" command on the Build menu to compile and register the
classes. The Build process appears to work properly.

The problem occurs when the one of the classes is instantiated in Access
2002 VBA procedure. The error arises on the second of the following VBA code:

Dim myClass as myCOMClass
myClass = new myCOMClass

The following error message occurs:

Run-time error '-2147217843 (80040e4d)':

No Error information available:
DB_SEC_E_AUTH_FAILED(0X80040E4D).

Any ideas of what could cause such an error?

Other characteristics of VB.Net project/COM classes (which may be
contributing to the error message):
Should I have separate projects for each COM class? (I'd like to have them
in one place for organization reasons.)
One of the COM classes uses an Imports System.Data.OLEDB statment at the
beginning of the class.

I don't know what to do at this point. Maybe remove code, recompiling and
building trying to isolate any offending code.

Thanks, Mark

Nov 21 '05 #1
2 2647
I certainly know very little of com classes but VB.Net uses integers as 4
bytes whereas some other apps might use integers as 2 bytes. If you are
passing integers from Access, this could be a problem...just a thought.
--
Dennis in Houston
"Mark" wrote:
I developed two COM classes in a single VB.Net (2002) project and used the
"Build Solution" command on the Build menu to compile and register the
classes. The Build process appears to work properly.

The problem occurs when the one of the classes is instantiated in Access
2002 VBA procedure. The error arises on the second of the following VBA code:

Dim myClass as myCOMClass
myClass = new myCOMClass

The following error message occurs:

Run-time error '-2147217843 (80040e4d)':

No Error information available:
DB_SEC_E_AUTH_FAILED(0X80040E4D).

Any ideas of what could cause such an error?

Other characteristics of VB.Net project/COM classes (which may be
contributing to the error message):
Should I have separate projects for each COM class? (I'd like to have them
in one place for organization reasons.)
One of the COM classes uses an Imports System.Data.OLEDB statment at the
beginning of the class.

I don't know what to do at this point. Maybe remove code, recompiling and
building trying to isolate any offending code.

Thanks, Mark

Nov 21 '05 #2
Dennis - Thanks for the thought.

It's definitely some code in the program (duh, stating the obvious)- I'm
still working through it but at least I have hope to lick it.

What was throwing me was that the code was working at some point. But I
made a few changes (what I thought were minor) and it started giving me
trouble. I mistakeningly thought it was a bug with VB.Net, not my program
(ah, the arrogance).

Mark

"Dennis" wrote:
I certainly know very little of com classes but VB.Net uses integers as 4
bytes whereas some other apps might use integers as 2 bytes. If you are
passing integers from Access, this could be a problem...just a thought.
--
Dennis in Houston
"Mark" wrote:
I developed two COM classes in a single VB.Net (2002) project and used the
"Build Solution" command on the Build menu to compile and register the
classes. The Build process appears to work properly.

The problem occurs when the one of the classes is instantiated in Access
2002 VBA procedure. The error arises on the second of the following VBA code:

Dim myClass as myCOMClass
myClass = new myCOMClass

The following error message occurs:

Run-time error '-2147217843 (80040e4d)':

No Error information available:
DB_SEC_E_AUTH_FAILED(0X80040E4D).

Any ideas of what could cause such an error?

Other characteristics of VB.Net project/COM classes (which may be
contributing to the error message):
Should I have separate projects for each COM class? (I'd like to have them
in one place for organization reasons.)
One of the COM classes uses an Imports System.Data.OLEDB statment at the
beginning of the class.

I don't know what to do at this point. Maybe remove code, recompiling and
building trying to isolate any offending code.

Thanks, Mark

Nov 21 '05 #3

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

Similar topics

10
by: | last post by:
I am accessing the same error-containing ASP page on an ISP server using w2k IE6 but with different effect. On the first computer I get several line of HTML outputed by ASP, shown correctly by...
9
by: Mairhtin O'Feannag | last post by:
Hello, We have two machines we wish to use DPF. They are both RH ES 2.1, with DB2 8.2. I read the documentation CAREFULLY, and added the following line to my db2nodes.cfg file : 1 egret 0
6
by: Squirrel | last post by:
I have a command button on a subform to delete a record. The only statement in the subroutine is: DoCmd.RunCommand acCmdDeleteRecord The subform's recordsource is "select * from tblVisit order...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
10
by: Shawn | last post by:
JIT Debugging failed with the following error: Access is denied. JIT Debugging was initiated by the following account 'PLISKEN\ASPNET' I get this messag in a dialog window when I try to open an...
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.