如何实现我的Asp.Net项目 [英] How Do I Make My Asp.Net Project Live

查看:87
本文介绍了如何实现我的Asp.Net项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我已经完成了我的asp.net网络应用程序项目,现在我该如何实现?



我有我的公司服务器,我可以通过ftp文件传输上传所有文件。



但这样做是否足够?



我是否必须在任何地方更改连接字符串或如何上传数据库?



Hi
I have completed my asp.net web application project, now how do i make it live?

I have my company servers where I can upload all the files through ftp file transfer.

but doing so will be suffice?

Do i have to change the connection string anywhere or how to upload the database?

<add name="InventoryDatabaseConnectionString" connectionString="Data Source=.\INSTANCE;Initial Catalog=InventoryDatabase;Integrated Security=True" />





这是现在在我的系统中用web.config写的连接字符串



如何完成整个过程?



有人可以帮帮我吗?



Tha nks

Sudeshna



this is the connection string written in web.config now in my system

How do i do the entire process?

Can anyone please help me?

Thanks
Sudeshna

推荐答案

我发现大多数情况下,快递版本的数据库备份在服务器上不起作用,因为微软为学习者提供了SQL服务器的快速版本。这些版本在本地计算机上运行良好,它们的数据库将有不同,例如(.sdf)是MS SQL Express版本的扩展,(。mdf)是专业MS SQL版本。首先请注意这个问题。相反,我会建议你在SQL服务器上直接开发新的数据库和表。然后根据您使用的在线服务器获取连接字符串。现在替换连接字符串。



现在是编译和发布解决方案的时候了。有不同的方式来发布ASP.net解决方案。最简单的方法是:

Most of of the cases I have observed that the backup of database from express versions do not work on servers because Microsoft has provided express versions of SQL servers for learners. These versions work very well on local machines their database will have different for example (.sdf) is an extension for MS SQL express version and (.mdf) is for professional MS SQL version. First of all please pay attention for this issue. Instead this thing I will suggest you to just develop new database and table straight on SQL server. Then get the connection string as per the online server you have used. Now replace the connection string.

Now this is the time to compile and publish the solution. There different ways to publish an ASP.net solution. The easiest way is:


  1. 转到构建菜单并单击发布网站。它将为您提供一个对话框发布Web
  2. 此对话框中显示的选项可能因您使用的Visual Studio版本而异。一些Trial Visual Studio版本甚至没有Build菜单。在最新的专业版本中,如Visual studio 2012/2013 pro。会要求你创建个人资料。在个人资料标签上,选择自定义添加新个人资料,然后点击确定。
  3. 您将选择发布的不同方法。根据您的具体情况,如果您的网络服务器有ftp链接和密码,则可以自行选择,然后您可以选择ftp。初学者更简单的方法是:

    Web部署包和文件系统。
  4. 现在选择文件系统并浏览到要保存编译网站的文件夹。 / li>
  5. 现在是点击发布按钮的时候了。



现在你可以使用任何一个Windows在线服务器复制并粘贴这些文件了ftp客户端。大多数开发人员使用FileZilla https:// filezilla- project.org/download.php?type=client [ ^ ]


您需要在服务器上安装数据库(MS SQL或MySQL)并在服务器上创建数据库'InventoryDatabase',然后使用以下连接字符串web.config





You need to install the database (MS SQL or MySQL) on the server and create the database 'InventoryDatabase' on the server and then use following connection string in the web.config


<add name="InventoryDatabaseConnectionString" connectionstring="Data Source=Name\INSTANCE;Initial Catalog=InventoryDatabase;Integrated Security=True" />







之后配置使用您在服务器上复制文件的路径的网站的Web服务器(IIS或Apache)。




after that configure the webserver (IIS or Apache) for the website using the path where you copied the file on the server.


备份当前系统的数据库并在服务器数据库上还原并更改Con nection String.set服务器的连接字符串。





Backup The Database of the Current system And Restore On The Server Database And Change The Connection String.set the connection string Of the Server.


<add name="InventoryDatabaseConnectionString" connectionString="Data Source=serverip or Name\INSTANCE;Initial Catalog=InventoryDatabase;Integrated Security=True" />


这篇关于如何实现我的Asp.Net项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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