UAC问题连接到Windows7中的数据库 [英] UAC problem to connect to database in windows7

查看:77
本文介绍了UAC问题连接到Windows7中的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的专家,

我有一个应用程序,在其中连接到sdf db文件.如果我在"C:\ Program File"中安装我的应用程序,则我的应用程序将无法连接到数据库.无法连接数据库的错误.但是如果我在其他驱动器中安装相同的应用程序,例如D或E,则它可以连接到DB.

如何在Windows 7中的C:\ Program文件中授予访问权限?

谢谢大家.

问候,
Vidi

Dear Experts,

I''ve a application, in which I''m connecting to sdf db file. If i install my application in "C:\Program File" my application is not able to connect to database. Its giving error that failing to connect to database. But if i install same application in some other drive e.g. D or E, then its able to connect to DB.

How can i grant access in C:\Program file in windows 7?

Thank you all.

Regards,
Vidi

推荐答案

程序文件"受Windows保护.您必须使用另一个文件夹来保存数据,请在此处阅读: http://stackoverflow.com/questions/867485/c-sharp-getting-the-path-of-appdata [
"Program Files" is protected by Windows. You have to use another folder for saving your data, read here : http://stackoverflow.com/questions/867485/c-sharp-getting-the-path-of-appdata[^]


这篇关于UAC问题连接到Windows7中的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆