How to deploy C# exe with .Mdf file?

天涯浪子 提交于 2019-12-11 02:16:10

问题


I have created windows application and i have created local database and added user name and password

If username and password is correct then i have to open the code.

I have generated a Setup.Msi , but when i try to install in my machine its working correctly

But when i try to install the same exe in some other machine which is not having .Net or anything related to sql server ..

It shows errors..it cant able to read .Mdf file...How to do it please. help me in this

 <add key="Connection" value="Server=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Download\Test.mdf;Integrated Security=True;"/>

Even i tried Integrated security as false .. still the same issue ...

来源:https://stackoverflow.com/questions/22712688/how-to-deploy-c-sharp-exe-with-mdf-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!