kevwestwood
2010-01-06 23:02:38 UTC
We have two C# apps. One winforms gui app and a service installed under the
LocalSystem account. Each needs to be able to connect to the same SQL Server
CE database.
With UAC turned on, if the gui app connects first, the service cannot connect
and we get the error "Database already opened by a different user". However,
if the service connects to the database first, then the gui app can connect
just fine.
If we run the gui app as an administrator and connect first, the service can
connect. However, we do not want to force the user to run the gui app as an
administrator. We have tried to install the service under different accounts,
including the same account that the user is running under, but it makes no
difference.
Does anyone know a solution to this problem? Is this a SQL Server CE bug?
LocalSystem account. Each needs to be able to connect to the same SQL Server
CE database.
With UAC turned on, if the gui app connects first, the service cannot connect
and we get the error "Database already opened by a different user". However,
if the service connects to the database first, then the gui app can connect
just fine.
If we run the gui app as an administrator and connect first, the service can
connect. However, we do not want to force the user to run the gui app as an
administrator. We have tried to install the service under different accounts,
including the same account that the user is running under, but it makes no
difference.
Does anyone know a solution to this problem? Is this a SQL Server CE bug?