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

Posted on 2008-11-05
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

    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

    Thank-you for your response!

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now