0

Okay I have created my project in Visual Studio 2012 express edition. I have used ClickOnce Application deployment to create a setup file. Everything works absolutely fine when i run the project in my computer. But when i install the same project in another computer database connections are not working saying path is not correct. I understand that the path given to connect to the database is of my system. Now that is my problem and what should i do to make the database stuff to work in other systems as well? Please help me as this would make my project complete!

Thanks in advance.

4

1 回答 1

0

通常,应用程序将使用 app/web.config 进行部署。或者其他配置文件。然后,您的代码会从此文件中读取连接字符串以查找数据库。

在部署时,您可以在部署后更改配置文件,这可以手动完成,如果它是一个 Web 配置文件,则可以在 IIS 中完成,不确定是否通过单击一次部署进行自动编辑;但是配置文件或某种设置将是关键。

于 2013-10-08T15:55:48.713 回答