本文介绍了如何强制我的.NET应用程序以管理员身份运行也可以访问sqlite?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I have create Set up file for WPF application and the database is SQLite DB. After the installation the SQLite DB is located this path in C folder, and the application is running properly on any computer that without an administrator Password PC.
C:\Program Files (x86)\myCompany\myScanApp.
public SQLiteConnection dbConnection = new SQLiteConnection(@"Data Source=C:\Program Files (x86)\myCompany\myScanApp\test.s3db;");
The problem is, it is failing to login after running this application if any other administrator password set PC. How can I solve this problem?
How can I access Sqlite DB from C drive after installation WPF application if pc have administrator password ?
我尝试过:
我正在使用此连接字符串: -
What I have tried:
I am using this connection string:-
public SQLiteConnection dbConnection = new SQLiteConnection(@"Data Source=C:\Program Files (x86)\myCompany\myScanApp\test.s3db;");
推荐答案
这篇关于如何强制我的.NET应用程序以管理员身份运行也可以访问sqlite?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!