I am having some trouble connecting to an Access database which sits on a remote computer:
The Microsoft Access database engine cannot open or write to the file '\\ACCESSSERVER-PC\Warehouse Manager\Error Logging\Error Logging.accdb'. It is already opened exclusively by another user, or you need permission to view and write its data.
The database is not open for editing by anyone else and I should be able to connect to it.
I am using this connection string:
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\ACCESSSERVER-PC\Warehouse Manager\Error Logging\Error Logging.accdb;Persist Security Info=False;
And the error occurs when calling connOpen();
using (var conn = new OleDbConnection(ConnectionString))
{
try
{
conn.Open();
}
}
I gave myself full permissions for the server as well as the .accdb
file iteself, and did the same for the NETWORK SERVICE
account as per this post, but still not luck.
I don't have a problem connecting to databases which are stored locally, and this only seems to be happening whent rying to conect over the network.
Has anyone else experienced this and found a solution? Any help or advice is much appreciated.
I have checked this answer and can confirm that I have all the required permissions to access the file.
That question is marked as a duplicate of this question, but I don't have any programs running which would have a stream open to the file.