在C#Windows应用程序中安装时出现问题 [英] Problem in setup in C# windows application

查看:87
本文介绍了在C#Windows应用程序中安装时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,亲爱的朋友,
我在C#Windows应用程序设置中遇到问题...
当我在Windows XP中安装它时,它可以正常工作,但是当我在Windows7中安装它时,它可以在其他驱动器中正常工作,但是在主驱动器中显示错误消息数据库是只读的.
我无法在此数据库中插入数据...

如果有人可以帮助我,请回复.

谢谢...

Hello Dear friends,
i have a problem in my C# windows application setup...
When i installed it in Windows XP then it''s worked properly, But When i installed it in windows7 then it''s worked in other then primary drive properly but it''s shows a error massage in primary drive that is database is read only .
i can''t insert data in this database...

if anyone can help me ,,, please reply.

Thanks...

推荐答案

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

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

来源: 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[^]


这篇关于在C#Windows应用程序中安装时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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