简体   繁体   English

在 Visual Studio 2015 中通过 FTP 发布 ASP.NET 网站

[英]Publish ASP.NET website by FTP in Visual Studio 2015

I am beginner in ASP.NET and trying to publish my first website by using FTP(FileZilla) .我是 ASP.NET 的初学者,并尝试使用FTP(FileZilla)发布我的第一个网站。 I have web hosting and domain name but After following this method:我有虚拟主机和域名,但在遵循此方法后:

To publish your web application using FTP:要使用 FTP 发布您的 Web 应用程序:

  1. Open the project in Visual Studio 2013. Click Build > Publish.在 Visual Studio 2013 中打开项目。单击生成 > 发布。 That will bring up the "Publish Web" dialog box.这将打开“发布 Web”对话框。
  2. Change the "Publish Method" to FTP.将“发布方法”更改为 FTP。 Server: Enter your FTP URL.服务器:输入您的 FTP URL。 Example:例子:
    ftp.YourHostedDomain.com ftp.YourHostedDomain.com
  3. In the Site Path field, enter the在站点路径字段中,输入
    subdirectory you wish to publish the application to (for example: /Subdirectory).您希望将应用程序发布到的子目录(例如:/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.在用户名字段中,输入在控制面板中找到的 FTP 用户名。
  6. In the password field, enter the FTP password.在密码字段中,输入 FTP 密码。
  7. Click "Next" to determine the web.configuration you will publish.单击“下一步”确定您将发布的 web.configuration。
  8. Click "Publish."点击“发布”。

I am able to publish it in my ftp.YourHostedDomain.com but it is not working well, when I visit my Destination Url it is showing me that site, from where I have purchase this domain and hosting instead of my website which I have published.我可以在我的ftp.YourHostedDomain.com发布它,但它运行不正常,当我访问我的目标 URL 时,它向我显示了该站点,从那里我购买了此域和托管,而不是我已发布的网站. I spend lots of time for it, Please suggest me what should I do?我花了很多时间,请建议我该怎么做?

Generally, MVC web applications will publish or update their database on first run.通常,MVC Web 应用程序将在第一次运行时发布或更新其数据库。 Have you tried copying your project to the correct folder on the hosting site and pulling up the home page?您是否尝试将您的项目复制到托管站点上的正确文件夹并拉出主页?

暂无
暂无

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

相关问题 将visual.net 2015中的asp.net 5发布到linux - Publish asp.net 5 from visual studio 2015 to linux 带有Visual Studio 2015的ASP.NET WebSite SSL - ASP.NET WebSite SSL with Visual Studio 2015 如何使用 Visual Studio 将 ASP.NET Web 应用程序 (.Net Framework) 发布到 FTP 服务器? - How to Publish ASP.NET Web Application (.Net Framework) with Visual Studio to FTP Server? 如何在不使用Azure的情况下将Visual Studio 2015中的ASP.NET 5项目发布到Docker映像或Linux - How to publish a asp.net 5 project in visual studio 2015 to a docker image or linux without azure 尝试发布ASP.NET核心Web应用程序时Visual Studio 2015崩溃 - Visual Studio 2015 crashes when attempting to publish ASP.NET core Web Application MSB4018错误Visual Studio 2015 ASP.Net和错误将Web应用程序发布到Azure - MSB4018 Error Visual Studio 2015 ASP.Net and Error Publish Web App to Azure Visual Studio 2015(最新更新)发布函数无法编译ASP.NET Core RC1源 - Visual Studio 2015 (latest update) publish function does not compile ASP.NET Core RC1 sources 无法在Visual Studio 2015(ASP.NET 5 Web应用程序)中打开发布对话框 - Can't open Publish dialog in Visual Studio 2015 (ASP.NET 5 web application) 是否可以在Visual Studio 2015的其他端口中发布asp.net Web API? IIS不是IIS Express - Is it possible to publish asp.net web api in a different port in Visual Studio 2015 ? IIS not IIS Express 网站发布后,Visual Studio 2015 ASP.NET按钮不再起作用 - Visual Studio 2015 ASP.NET Button no longer works when website is published
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM