且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在C#Windows应用程序中安装时出现问题

更新时间:2022-06-08 00:40:49

您是否从其他地方复制了数据库?如果是这样,请查找数据库,右键单击,取消选中只读",然后通过完全控制"将安全权限授予每个人".

然后尝试以管理员身份运行已安装的程序,右键单击,选择运行方式",然后登录到管理员帐户.

来源: http://bytes.com/topic/net/answer/898686-sql-database-readonly-error-windows-7-a [
Did you copied your database from somewhere else? If so, look for the db, right click, uncheck ''Read-only'' and grant security permission to ''Everyone'' with Full Control.

Then try running your installed program as Administrator, right click, choose ''Run as'', then login to the administrator account.

Source: http://bytes.com/topic/net/answers/898686-sql-database-readonly-error-windows-7-a[^]


不要认为这是环境问题.几个建议:

1.在两种环境中验证应用程序登录ID
2.使用DB Profiler跟踪数据库日志

它将在应用程序的SQL/DB层给出确切的问题.
Don''t think it is an issue with environment. Couple of suggestions:

1. Verify the application login ID in both environments
2. Trace the database log using DB profiler

It will give the exact issue at SQL/DB layer of the application.


try
由于数据库是只读的而无法更新.mdf数据库. /a> [ ^ ]
try
Failed to update .mdf database because the database is read-only[^]