473,387 Members | 1,678 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.

OLEDB exception on some machines

I am writing an application that runs as a service and utilizes the
..NET Framework v2.0. I am using an access database and OLE as my data
access driver.

On the machines I am developing this application on and my own personal
machine everything works fine. However, when I try and run the service
on any other machine I get a system.data.oledbexception thrown - thus
shutting the service down.

I have no clue why this is happening on some machines but not other. I
have checked and the same build of .net 2.0, MDAC, MS Jet, and MS
Office (includes access) are installed the various machines.

I have also tried installing the .NET 2.0 SDK to see if that solved the
issue and it did not.

Any help would be appreciated.

Thanks,
Patrick

Apr 21 '06 #1
3 1192
Patrick,
Usually (but not always) this is caused by insufficient write permissions on
the folder that holds the Access MDB database file. Access creates temporary
files during normal operation, and if it can't write them, there goes the
whole house up in flames.
Ensure that the System or whatever account credentials the service runs
under has write permissions to that folder.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ja*******@gmail.com" wrote:
I am writing an application that runs as a service and utilizes the
..NET Framework v2.0. I am using an access database and OLE as my data
access driver.

On the machines I am developing this application on and my own personal
machine everything works fine. However, when I try and run the service
on any other machine I get a system.data.oledbexception thrown - thus
shutting the service down.

I have no clue why this is happening on some machines but not other. I
have checked and the same build of .net 2.0, MDAC, MS Jet, and MS
Office (includes access) are installed the various machines.

I have also tried installing the .NET 2.0 SDK to see if that solved the
issue and it did not.

Any help would be appreciated.

Thanks,
Patrick

Apr 21 '06 #2
Peter,

I am running the service as Local System and it is resides in the
%systemroot%/KidPatrol folder.

I have another service that also runs from that same folder and with
the same account and it can access its database just fine.

- Patrick

Apr 23 '06 #3
Also, I changed the file extension to the database to .src would that
cause a problem?

Apr 24 '06 #4

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

Similar topics

3
by: Chris Thunell | last post by:
I have a program where i connect to an access database and get some information out of it. I'm using the oledb.3.51 version, my computer doesn't seem to have the 4.0 version, but the computer that...
2
by: Joe | last post by:
Hi All, I am new to using the Access DB and I need some help if someone is able to give it to me. What I want to do is get the names of the columns of certain tables. Not the data in the table...
0
by: silesius | last post by:
I've been using VS 2003 to develop a webapplication using C#. Today I exported the application to a remote webserver I begun experiencing problems. It's a simple application that retrieves some...
0
by: silesius | last post by:
I've been using VS.NET 2003 to develop a webapplication using C#. Today I exported the application to another webserver I begun experiencing problems. It's a simple application that retrieves...
2
by: Martin | last post by:
Hi, I currently have an application that connects to an MS ACCESS database. This application uses an OLEDB connection string for MS ACCESS. Now, I'd like to upsize the application so I converted...
0
by: NicK chlam via DotNetMonster.com | last post by:
this is the error i get System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at System.Data.Common.DbDataAdapter.Update(DataRow dataRows, DataTableMapping tableMapping) at...
5
by: petro | last post by:
Hello all, My asp.net web application works on my machine but I get the following error on our test web server, There is only one oracle home on the test server. Does anyone know how to resolve...
1
by: spicyz | last post by:
I'm receiving an exception when my webmethod exits after opening/closing an Access database. I can reproduce this easily enough by creating a new default ASP .NET Web Service in VS.NET 2003. ...
0
by: aloneball | last post by:
I have several Excel files which I need to import into a SQL server. I open each file using string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source = " + fileName +...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
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.