简体   繁体   English

如何使用Visual Studio 2019发布ASP.NET应用程序?

[英]How to publish asp.net application with Visual Studio 2019?

I try to publish the site via ftp method and there are some options that i do not know how to complete them. 我尝试通过ftp方法发布站点,并且有些选项我不知道如何完成。

The inputs are 输入是

  • server 服务器
  • sitepath 站点路径
  • username and password i assume it is the ftp credentials 用户名和密码,我认为它是ftp凭据
  • and destination url 和目标网址

and secondly how the heck am i going to upload my database? 其次,我要怎么上传我的数据库? Am I going to use SQL Server Management Studio? 我要使用SQL Server Management Studio吗?

Thank you. 谢谢。

I experimented with many different values for the input but no lack! 我为输入尝试了许多不同的值,但不乏它!

Please follow these steps to deploy asp.net with via visual studio 2019 using FTP. 请按照以下步骤使用FTP通过Visual Studio 2019部署asp.net。

  1. In Visual Studio, on the Build menu, click Publish 在Visual Studio中,在“生成”菜单上,单击“发布”。
  2. On the Publish page, click the icon labeled IIS, FTP, etc. 在“发布”页面上,单击标有IIS,FTP等的图标。
  3. Click Publish. 单击发布。
  4. From Connection Tab, select FTP as Publish Method list box. 在“连接”选项卡中,选择“ FTP”作为“发布方法”列表框。
  5. In the Server text box, type the protocol, server domain name, and port:( ftp://abc.com:990 ) etc [All versions of Visual Studio assume port 21 is the default port. 在“服务器”文本框中,键入协议,服务器域名和端口:( ftp://abc.com:990 )等[Visual Studio的所有版本均假定端口21为默认端口。 You must specify port 990 in the Server text box for a successful connection.] 您必须在“服务器”文本框中指定端口990才能成功连接。]
  6. In the Site Path text box, type the file location where the site files should be stored. 在“站点路径”文本框中,键入应该存储站点文件的文件位置。 For the primary domain of an account, the path is /httpdocs but it could be any path that you have set up: 对于帐户的主域,路径为/ httpdocs,但可以是您设置的任何路径:
  7. Select the Passive mode check box if it is not already selected: 如果尚未选中“被动模式”复选框,则:
  8. In the Username text box, type the FTP username, and password in Password field. 在“用户名”文本框中,在“密码”字段中键入FTP用户名和密码。
  9. Optionally, in the Destination URL text box, type the URL for the uploaded site:(http//:abc.com) etc (可选)在“目标URL”文本框中,键入上载网站的URL:(http //:abc.com)等
  10. Click Validate Connection. 单击验证连接。 A green checkmark appears when validation is successful and Click Next. 验证成功后,将出现一个绿色的选中标记,然后单击“下一步”。
  11. On the Settings tab, select any additional options that you want. 在设置选项卡上,选择所需的任何其他选项。 None of the settings are required to continue. 无需任何设置即可继续。
  12. After making any desired settings, click Save. 进行所需的设置后,单击“保存”。
  13. The FTPS upload begins immediately, and you can view progress in the Output panel. FTPS上传立即开始,您可以在“输出”面板中查看进度。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 Visual Studio 将 ASP.NET Web 应用程序 (.Net Framework) 发布到 FTP 服务器? - How to Publish ASP.NET Web Application (.Net Framework) with Visual Studio to FTP Server? 如何在 Visual Studio 2019 中创建 ASP.NET 网站? - How to create an ASP.NET website in Visual Studio 2019? 如何在Visual Studio 2012中的命令行上将ASP.NET网站或Web应用程序发布到文件系统 - How to publish an ASP.NET web site or web application to a file system on the command line in Visual Studio 2012 如何发布Visual Studio ASP.NET解决方案? - how to publish the visual studio asp.net solution? 如何将Visual Studio ASP.NET 5项目发布到Docker Hub? - How to publish Visual Studio ASP.NET 5 projects to Docker Hub? 可以在 Visual Studio 2013 中开发的 Asp.net 4.5.1 中的 WebForms 应用程序在 Visual Studio 2019 中打开和工作吗? - Can a WebForms application in Asp.net 4.5.1 developed in Visual Studio 2013 be opened and worked on in Visual Studio 2019? Visual Studio 2019 中缺少 ASP.NET 核心 Web 应用程序 - Missing ASP.NET Core Web Application from Visual Studio 2019 Visual Studio 2019 中缺少 ASP.NET 核心 Web 应用程序模板和所有 ASP.Net 核心模板 - Missing ASP.NET Core Web Application Template and all ASP.Net Core Templates in Visual Studio 2019 尝试发布ASP.NET核心Web应用程序时Visual Studio 2015崩溃 - Visual Studio 2015 crashes when attempting to publish ASP.NET core Web Application 无法在Visual Studio 2015(ASP.NET 5 Web应用程序)中打开发布对话框 - Can't open Publish dialog in Visual Studio 2015 (ASP.NET 5 web application)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM