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

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!
search.jpg
previewservicesAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joel CoehoornDirector of Information TechnologyCommented:
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):

http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_23254663.html

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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
previewservicesAuthor Commented:
Thank-you for your response!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.