如何创建项目和网站的设置 [英] how to create a setup of project and website

查看:76
本文介绍了如何创建项目和网站的设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个店铺管理项目>>项目文件夹为E:shopmanagement,数据库位于E:database \ shop.mdf中,如何创建此项目的设置,当我创建它的设置时,数据库错误为显示了如何与数据库一起创建设置.

请帮助.....

I have created a project of shop management>Project folder is E:shopmanagement and database is in E:database\shop.mdf .How can I create a setup of this project.When I created setup of it.Database error was shown how to create a setup along with the database.

Please Help.....

推荐答案

您好,

1.将该数据库文件保留在项目创建文件夹App_Data中.
2.将连接字符串声明为app.config文件,并使用此连接字符串与数据库连接.
3.现在创建安装项目,它将不会出现任何错误并且可以正常运行.

如果此答案对您有帮助,请投票.
如果需要更多帮助,请回复.

问候
Pavanraje Dongare
Hello,

1. Keep that database file within the project creating folder App_Data.
2. Declare the connection string into app.config file and use this connection string to connect with database.
3. Now create the setup project it will not give any error and will run fine.

Vote if this answer helps you.
Reply if more help needed.

Regards
Pavanraje Dongare


看看针对类似问题的答案创建设置并支持使用VS.NET创建数据库 [在安装.NET应用程序期间创建数据库 [部署您的应用程序和数据库 [
Look at the answers given for the similar question asked here[^].
Various article links are present in it that will help you achieve the same.

Have a look at these too:
Creating setup With support for database creation Using VS.NET[^]
Create database during installation of a .NET application [^]
Deploy your Application and Database[^]


如果仅在DB中存在问题,则可以使用解决方案1.我已经解决了通过从头开始创建手工安装程序(winforms)来达到类似的情况,但就我而言,我需要部署Web应用程序,将其安装在ISS上,部署DB,部署2个计划的应用程序,更改配置文件等特定任务.在当前情况下无需这样做.
If problem only in DB you can use solution 1. I have solved similar situation by creating hand made installer from scratch (winforms) but in my case I was need to deploy web app, install it on ISS, deploy DB, deploy 2 scheduled app, change config files, etc specific tasks. There is no need of this in current case.


这篇关于如何创建项目和网站的设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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