2015 年 Visual Studio FTP 发布 ASP.NET 网站

Publish ASP.NET website by FTP in Visual Studio 2015

我是 ASP.NET 的初学者,正在尝试使用 FTP(FileZilla) 发布我的第一个网站。我有虚拟主机和域名,但在遵循此方法后:

To publish your web application using FTP:

  1. Open the project in Visual Studio 2013. Click Build > Publish. That will bring up the "Publish Web" dialog box.
  2. Change the "Publish Method" to FTP. Server: Enter your FTP URL. Example:
    ftp.YourHostedDomain.com
  3. In the Site Path field, enter the
    subdirectory you wish to publish the application to (for example: /Subdirectory).
  4. If you want to publish to the root directory. Leave the Site path empty.
  5. In username field, enter the FTP user name found in Control Panel.
  6. In the password field, enter the FTP password.
  7. Click "Next" to determine the web.configuration you will publish.
  8. Click "Publish."

我可以在我的 ftp.YourHostedDomain.com 中发布它,但效果不佳,当我访问我的目的地 Url 时,它向我展示了该网站,我从那里购买了该域名,并且托管而不是我发布的网站。我花了很多时间,请建议我该怎么做?

一般来说,MVC 网络应用程序会首先 运行 发布或更新它们的数据库。您是否尝试过将您的项目复制到托管站点上的正确文件夹并调出主页?