PC Review


Reply
Thread Tools Rate Thread

what can cause a "object was open" error

 
 
Marco Herrn
Guest
Posts: n/a
 
      16th Feb 2005
Hi,

I am writing an ASP.NET appliction with C#. I also access a MSDE database
with the OleDb Provider. I am using OleDb to have the option of easily
changing the underlying database. That worked all well. But after some
additions to my application I now have the following error:

Exception: System.Data.OleDb.OleDbException
Message: Object was open.
at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)
at System.Data.OleDb.OleDbConnection.InitializeProvider()
at System.Data.OleDb.OleDbConnection.Open()

This error does occur in some code snippets all the time, in some other it
seems that it only happens sometimes. I tried to find out more about the
error by investigating the problem in a code snippet where it always occurs.
But it doesn't help. It is just an INSERT statement to one table. I already
tried synchronizing the code snippet and commenting out all other accesses
to the same table to avoid any collisions by multiple threads that try to
access it, but it still doesn't work. The connection itself is closed, so
"Object" must mean something else. But what? Any ideas?

Regards
Marco



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is Error "Method "Paste" of object "_Worksheet" failed? =?Utf-8?B?dmF0?= Microsoft Excel Programming 7 17th Feb 2006 08:05 PM
"Object missing" error when trying to open or forward a vCard =?Utf-8?B?YXlhbm5h?= Microsoft Outlook Contacts 0 8th Mar 2005 04:11 PM
OL 2003: Error When Trying To Open Recurring Appointments: "Can't open this item. The object could not be found." Michael Polignano Microsoft Outlook Calendar 1 22nd Jan 2005 05:22 AM
double clicking on an object launches "Search" instead of "open" how do i reset Humphrey O'Leary Windows XP General 3 26th Feb 2004 04:30 AM
Error messages: "Winsck," "Status," and "Unable to open dialog" =?Utf-8?B?Sm9u?= Microsoft Windows 2000 0 9th Nov 2003 06:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:27 PM.