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

Exception from HRESULT: 0x800A9D9F

Malathi
31
Hi,

Im opening an accessdb(consists of forms,report,etc) via vb.net console application. This is for the purpose of scheduling jobs. Its working fine for hours. But if we are not logging in for 2 days the scheduler throws an exception as follows.
Exception from HRESULT: 0x800A9D9F
After logging in the error is disappearing. So I added the mdb into trust location but its of no use. I will be glad if anyone helps me.
Aug 29 '12 #1
8 6125
TheSmileyCoder
2,322 Expert Mod 2GB
You will need to show us the code you are using, and indicating the line which fails.
Aug 29 '12 #2
Malathi
31
Thanks for your reply smileycoder. Actually its happening at the run time, that too login issue. i.e. When the scheduling starts this app works fine, but if we are not logging for days then its throwing the above exception. If we do login again to the scheduler( by providing credentials)its working fine. This exception error disappears and continues the job as usual.
The model of the code Im using in vb.net console app is,
Expand|Select|Wrap|Line Numbers
  1. Private Sub RunAccessSub()  
  2. Dim appAccess As Object
  3.       ' Create instance of Access Application object.
  4.      appAccess = CreateObject("Access.Application")
  5.         ' Open WizCode database in Microsoft Access window.
  6.     appAccess.OpenCurrentDatabase "C:\My Documents\WizCode.mdb", False
  7.         ' Run Sub procedure.
  8.     appAccess.Run "Greeting", "Joe"
  9.     Set appAccess = Nothing
  10.     End Sub    
  11.  
Hope this gives you an idea.
Aug 29 '12 #3
TheSmileyCoder
2,322 Expert Mod 2GB
I dont really know what the exception is, and without real code to work with there really isn't anything I can do to help you. I don't know your setup, I dont know your access version, I don't know exactly what you mean by "logging in".

You do no provide nearly enough details to even guess where problems may arise.
Aug 29 '12 #4
zmbd
5,501 Expert Mod 4TB
I think it has something to do with the .net framework throwing the error and not access.

If you are leaving a connection open to the .net for an extended idle time then there maybe a timeout on the connection thus a generic COM security error.

-z
Aug 29 '12 #5
zmbd
5,501 Expert Mod 4TB
Yep,
This is a dot-net issue.. out of my knowledge base; however, here's a little information I read:
http://msdn.microsoft.com/en-us/libr...(v=vs.80).aspx
hopefully this will point you in the right direction.

-z
Aug 29 '12 #6
Malathi
31
Ya.. I too feel the same while reading the link provided by you zmbd.. Here Im getting a perspective that this com exception is thrown because of access security? Or even if its within .net, what might be the solution? Do you have any idea?
Aug 30 '12 #7
zmbd
5,501 Expert Mod 4TB
No; however, maybe moving this thread or reposting the question to the dot-net-framework forum may result in a better answer in that someone there has seen this...
-z
Aug 30 '12 #8
Malathi
31
thanks zmcd.. I will move it .net forum!
Aug 30 '12 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: RSB | last post by:
Hi Every one, i am using the try Catch block.. and the Exception object has a Message Property but i want to Catch the Error Number so that based on the Error number i can display Different error...
0
by: BizWorld | last post by:
I am using a com component in my web application. when i call a method of com component. it gives the following error only ComException HRESULT: 0xC0000005 If i run this com component in VB 6...
3
by: Lekyan | last post by:
I have problem setting the password for an ADAM user using C#. I used the SetPassword code given in the Microsoft page, changed several parameters, but ran into an exception. I wonder if other...
1
by: Kimmo Laine | last post by:
Hi, we have a (unmanaged) ATL COM server, which implements two interface: ITestInterface1 and ITestInterface2. Both of these interfaces also support the ISupportErrorInfo-interface. Interface...
4
by: Mark | last post by:
I have a COM object that calls into a C# Forms library. The library can throw exceptions and I want to handle the exceptions in COM. Adam Nathan wrote a Microsoft sponsored book titled .Net and Com...
4
by: Shimon Sim | last post by:
I just switch my asp application to .net 2 and got this error. Any reasons why? Thank you. Server Error in '/RAFEmployee' Application....
2
by: sgr | last post by:
Hello I'm making an application that uses an excel worksheet, My problem appears when I open the worksheet to see the data (then I close it and save the changes) and I try to insert a new row from...
11
by: Don | last post by:
When using Visual Basic .NET with a reference to Interop.Outlook, is there a way to get more detailed information about an error other than Exception.Message or Exception.ToString? For example,...
4
by: fergc | last post by:
Hi.. I'm learning visual basic, so I installed the Visual Studio 2008 Express Edition to do the school projects, but when I try to look at the properties of my project I can't.. this is what...
4
by: yogarajan | last post by:
The specified module could not be found. (Exception from HRESULT: 0x8007007E) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack...
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: 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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.