Last post Sep 15, 2007 06:00 AM by dreamz
Sep 15, 2007 05:25 AM|usk|LINK
I have created a web application using asp.net on my IIS server.
I want to upload this application to a server with the hosting company so that I can launch my site.
How do I copy my web application to the hosting company server.
Sep 15, 2007 05:42 AM|famous|LINK
You can either upload all files including source .vb files using the copy web site... function, or publish the web site using a precompiled assebmly (dll file).
In the first case from the web site menu choose Copy Web Site and enter the remote server ftp address, username and password. Depending on the hosting company you might have to check Use passive mode. Then, using the right arrow select your project files
from the left option to copy them to the target server.
In the second case select publish web site from the build menu and then 'OK. The web site is precompiled and the files created whih you have to upload are stored in PrecompiledWeb folder inside the Project name folder. Using an ftp tool or accesing your
remote web server using windows explorer, transfer these files to the remote server.
Keep in mind, that if you change a file and you need to upload the changes, in the second case you have to precompile the web site and upload, in the first case you have to copy only the file which you made the changes. The advantage of the second case is
that no source code is being uploaded because it is precompiled in a dll file. The web site performance is also better in the second case. So, I would suggest using the second case if your web site is the final release.
Sep 15, 2007 05:54 AM|kaushalparik27|LINK
if you are working in asp.net 2.0 (2005) then you simple build your web application from solution explorer (right click on the web application name in solution explorer and click build website).. after building the site ...same way publish your website
same way (right click on the web application name in solution explorer and click publish website).. it will show the path where the website is being published... after successful publish.. copy that published precompiled folder to host...
alternate solution is Web Setup Project: just like window application it will let you create SetUp.Exe executable to host your application..
Visual Studio 2005 Web Deployment Project support available for Download - ScottGu's Blog
hope it helps./.
Sep 15, 2007 06:00 AM|dreamz|LINK