[RESOLVED] Unable to connect to database when running via mapped drive
I've got a weird problem, it's probably related to the way Windows manages security.
I have an application that connects to a mysql database. If the exe file is copied to a computer and run it connects to the database fine. If I put the exe on a shared folder on the network and try and run it, then I get an error that it cannot connect to the database.
This is with only 1 user accessing the exe, it's not in use by anyone else.
I'm using the mysql connector/net.
Has anyone encountered this before?
Any suggestions to overcome it?
Re: Unable to connect to database when running via mapped drive
You can not run a .NET application from a network folder by default. The security policies from .NET prevent it. So you have to copy the application to a local folder or you have to reconfigure the security policies. You will find the right options under Code Access Security Policy.
Re: Unable to connect to database when running via mapped drive