How to Publish Your Web Application


This article give brief tutorial about how to publish your web application using FTP:

1. Open your project via Visual Studio tool

2. On the Solution Explorer window, right click your project and select "Publish Website"

3. Please publish your website to your local folder, such as C:\Project

4. You will see all the files and subfolders on C:\Project, however, you will not see any code-behind files

5. Please upload whatever you see on C:\Project to the server via FTP

Please note that if your website does not even work on your local PC, it will never ever work on the server. This is why it is important to ensure that your site works on your local PC first

Also, please kindly add a customError tag on your web.config so that you can view the error message directly (if in case there is an error). This can be something like:

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>



Article ID: 296
Created On: Mon, Aug 18, 2014 at 4:01 AM
Last Updated On: Mon, Aug 18, 2014 at 4:01 AM
Authored by: ASPHostServer Administrator [asphostserver@gmail.com]

Online URL: http://faq.asphosthelpdesk.com/article.php?id=296