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?