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

.Net service database problem

Hi

I'm currently developing a simple VB.NET Windows Service
that shall receive files (including data) as an input and
write these data into a Access database. For this, I use
the OleDbCommand and - Database objects, provided by the
framework, and the follwing functions:
OleDbCommand.ExecuteNonQuery(),OleDbCommand.Execut eReader
().
Now, sometimes, when I run the service I receive the
following exception (sorry, german):

System.InvalidOperationException: OleDbCommand ist
ausgelastet Open, Fetching

Unfortunately, I can't find anything helpful about this
in the documentation.
Can anyone help me out of this?

Andreas
Jul 21 '05 #1
5 2383
Hi Andreas,

Can you post the full Error message in English? With the exact error
message and the code throwing the exception, we will a clear on what it is
going on there.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Jul 21 '05 #2
Hi

thanks for the answer!
The complete (english) error message is:

System.InvalidOperationException: The OleDbCommand is
currently busy Open, Fetching.
at System.Data.OleDb.OleDbCommand.OnSchemaChanging()
at System.Data.OleDb.OleDbCommand.set_CommandText(Str ing
value)
at TestService.Database.MyFunction() 'TestService is
my .net service; Database a class for db accessing

Unfortunately, I can't give you the code that caused the
problem, because when I try to attach a debugger (via
VS.NET) at the running service process, everything works
slower (!) but fine (!!).

Could you guess what's going on here?

Thanks
Andreas
Jul 21 '05 #3
Hi Andreas,

Are the Database object or Myfunction statics? I mean, is it possible two
request call the method at same time? From the database layer, Access is
not very suitable for mutilple user environment, there may be some
conflicts under the situation. You may first check if the exception will
occur with single request. (Only one request to call the windows service,
and one object call the database class' method)

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no

rights.)

Jul 21 '05 #4
sir
1
The problem is probably in the following:
After making query on that command which returned OleDbDataReader
you haven't done
OleDbDataReader.Close();
before calling next
command.ExecuteNonQuery();
or
command.ExecuteReader();

Good Luck
Oct 21 '05 #5
Hi "Sir"
Thanks for the help provided on this thread. It was really very critical issue I was working at.

Thanks again,
Pradeep
Jul 3 '06 #6

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

Similar topics

10
by: amirmira | last post by:
I have a Windows Service developed in VB.NET that attempts to connect to a database as soon as the service starts. I have no problem when I start the service manually - but when I restart the...
3
by: adasilva | last post by:
I have create a Windows service that uses a timer to access a Web Service. The service is set to start Automatically and its using the local system account. The service also logs events to the...
8
by: nautonnier | last post by:
I know my problem has been discussed ad nauseum but I still don't get it so please bear with me. I have written a service which performs some work against a database once a day (usually in the...
2
by: Trevor | last post by:
Argh! This problem is driving me nuts! Can you help? In November of 2003, I installed a web service on Windows Server 2003 built in VB.NET for v1.1.4322 of the framework. It contains a timer...
1
by: james | last post by:
Hi Apologies if this is the incorrect group for this post. I have a Windows Service running that populates a database and a Web Service that accesses the same SQL 2000 database. One of my...
0
by: Emanuele | last post by:
I have write a program using MS Visual studio C++ 7.0 (platform Windows XP professional). I'm not using .NET. This program save data in a SQL server 2000 database using ADO. Everything works...
1
by: Celldss | last post by:
I have a .Net service (VB - 1.1 SP1) deployed in our environment that is experiencing an odd issue. The service does a series of file & registry based checks, logs to the event log and uploads the...
5
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point,...
8
by: =?Utf-8?B?RGF2aWQrKw==?= | last post by:
Hi, I have been developing Web Services in VS2005. Usually I use the built in server in VS2005 to test and develop the Web Service. However I now want to make this Web Service available to...
0
by: s.kapitza | last post by:
Hi, try M$S servicebug 3 regards s.kapitza alghaden@alumni.fdu.edu (Ahmad) wrote in message news:<4a75f4b7.0308080649.49105373@posting.google.com>...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
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: 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
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
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.