安装完设置后,mdf文件中只读错误 [英] Read only error in mdf file after installing setup

查看:116
本文介绍了安装完设置后,mdf文件中只读错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

i有问题,太多人无法解决,我创建了一个项目并创建了一个datagridview,在其中我创建了一个数据库文件(MDF),并且我使用了linq写入和读取,比如更新,删除和添加记录到我的数据库,最后我的项目完成但是,当我为它创建一个设置,安装sql server 2008,.net客户端配置文件,...当我运行我的应用程序,并尝试更新它,它说数据库是readonly.i在调试器发布模式没有这个问题,任何人都可以帮助我吗?我要花太多时间来解决这个问题。

Hello guys,
i have a problem,too many guys couldn't solve it,i created a project and created a datagridview,in it i created a database file(MDF),and i used linq to write and read,like updating,deleting and adding records to my database,at last my project is finished but ,when i create a setup for it,after installing sql server 2008,.net client profile,... when i run my app and try to update it,it says database is readonly.i don't have this problem in debugor release mode,can anyone help me?i'm putting too much time to solve this problem.

推荐答案

您的数据库文件位于%ProgramFiles%中。它应该是%AppData%



Piet
You're database file is in %ProgramFiles%. It should be in %AppData%

Piet


这篇关于安装完设置后,mdf文件中只读错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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