简体   繁体   English

安装Windows应用程序安装程序后,sdf文件中出现只读错误

[英]Read only error in sdf file after installing windows application setup

I got a following error "Access to the database file is not allowed. [ File name = C:\\Program Files\\Default Company Name\\somedbfile.sdf ]" while trying to log on after installing it in windows 7. It worked if i manually remove read only property of sdf file but it is not a good for client. 在Windows 7中安装后尝试登录时,出现以下错误“不允许访问数据库文件。[文件名= C:\\ Program Files \\ Default公司名称\\ somedbfile.sdf]”。手动删除sdf文件的只读属性,但这对客户端不利。 Could we do this pragmatically. 我们能务实地做到这一点吗? Any help would be appreciable. 任何帮助将是可观的。

Thanks in advance. 提前致谢。 Tarun 塔伦

the folders 'Program Files' or 'Program Files (x86)' are read only for the common users. 文件夹“ Program Files”或“ Program Files(x86)”对于普通用户是只读的。 if database file is in this folder , - change permission of this file to full control . 如果数据库文件位于此文件夹中,则-将该文件的权限更改为完全控制。 or - change path of database file 或-更改数据库文件的路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM