[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Getting Error "System.Data.OleDB.OleDBPermission" Failed

Posted on 2008-11-05
Medium Priority
Last Modified: 2013-11-08
Hi All,

I am having this problem with an application and an Access database. It works find on the local drive but as soon as it goes onto a networked drive, the attached error appears. Any ideas how i can sort this? Is it an application or computer issue?

Thanks in advance!
Question by:previewservices
LVL 18

Accepted Solution

Joel Coehoorn earned 2000 total points
ID: 22886096
The .Net framework has a built-in security feature, known as trust.  For framework versions 2.0 through 3.5, code that runs from a network share is not "trusted" for certain operations, including database access.  Supposedly 3.5sp1 puts things right again, but in the meantime I'll refer you to the question below, which includes instructions for allowing a specific network share on a specific machine (Yes, this must be done on every machine that needs to use the program):


If you have a lot of machines, then I recommend using a ClickOnce deployement rather than just dropping the .exe on the network share.  It's almost as easy.

Author Comment

ID: 22886126
Thank-you for your response!

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses
Course of the Month19 days, 12 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question