C#设置中的问题 [英] Problem in setup of C#

查看:53
本文介绍了C#设置中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#中进行了设置,并在其中构建了sql server 2008 exe,并附带了数据库.
我的问题是,当我在XP中运行安装程序然后可以正常运行时,但是当我在Windows 7中运行它时,它在D,E,F驱动器中可以正常运行,但在C驱动器中却无法正常运行... 它显示的错误是...

I have a setup in C# and I have in build sql server 2008 exe with it, and data base attached with it.
My problem is this when I run setup in XP then its work properly but when I run it in windows 7 then it works properly in D,E,F drive but not works in C drive...
It shows the error which is...

you have not window authentication for data base.The database primary file in already exists and its read only 

我的问题是,我该如何给窗口在Windows 7中对我的数据库进行身份验证.

我的另一个问题是,当系统中已存在sql server 2008R2时,数据库可以正常工作,但在系统中不存在,而是显示sql server 2008 exe时显示错误.....

我的连接字符串是

My question is, How can I give window Authentication for my data base in windows 7.

My other problem is, when sql server 2008R2 is already exist in System then database works properly but its not exist in system than its show error while I have in build sql server 2008 exe.....

My connection string is

Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\crm.mdf;Integrated Security=SSPI;User Instance=True


如果有人可以帮助我,请给我一些解决方案....

谢谢....


If anyone can help me then please give me some solutions for it....

Thanks....

推荐答案

语录:

我也遇到过同样的情况问题.实际上,Win 7有一些限制.您必须授予访问主驱动器(即C)的权限.
进入控制面板----所有控制面板项----系统----高级系统设置---系统保护---配置----关闭系统保护

i have also faced same kind of problem. Actually there are some restriction on Win 7; you have to give permission to access your primary drive ie C.
go Control Pane----All Control Panel Items----System----Advanced System Settings---System Protection---Configure----Turn Off system Protection


这篇关于C#设置中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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