数据库和Web应用程序部署 [英] Database and Web Application Deployment

查看:68
本文介绍了数据库和Web应用程序部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我试图在成功的本地主机上部署ASP.NET Web应用程序.
该应用程序还具有与数据库的集成,您知道要从sql服务器登录并从中获取一些数据.现在如何将我的sql server数据库与已部署的应用程序集成在一起?

在此先感谢.

hello guys,

I tried to deploy my ASP.NET web application on localhost in which i am successful.
This application also has database integration with it, you know for logging in and getting some data from the sql server. Now how can I integrate my sql server database with deployed app??

Thanks in Advance.

推荐答案


部署时应用程序.具有内容的App_Data文件夹也将复制到localhost文件夹.您需要使用数据库的正确路径更新应用程序的Web.Config.

有关连接字符串,可以参考
http://www.connectionstrings.com/ [
When you deploy the application. App_Data folder with content also gets copied to localhost folder. You need to update the Web.Config of your application with the correct path of Database.

For connection strings, you can refer to http://www.connectionstrings.com/[^]

Good luck.


这篇关于数据库和Web应用程序部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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