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