Question

I would like to know what is the efficient way for deploying ASP.NET web application. The process that I follow to deploy are:

  1. Build the web applicaiton

  2. Publish the web application from Standard Bar > Build Menu [Selecting only the files needed to execute the application]

  3. Connect to Server using any client software like [WinScp]

  4. Copy files from local computer to server.

Just like to know is this the correct approach?

Was it helpful?

Solution

The way I do this is in Visual Studio (i use 2013) using One-Click Publish. I find it to be very easy to use and works well. How to: Deploy a Web Project Using One-Click Publish in Visual Studio

in visual studio 2008:

  1. On the Build menu, click Publish Web Site.

  2. In the Publish Web Site dialog box, click the ellipsis button (…) to browse to the location to which you want to publish the Web site.

You can write the Web site output to a local or shared folder, to an FTP site, or to a Web site that you access with a URL. You must have Create and Write permissions in the target location.

  1. To be able to change the layout (but not the code) of .aspx files after publishing the Web site, select the Allow this precompiled site to be updateable check box.

  2. To name strongly named assemblies using a key file or a key container, select the Enable strong naming on precompiled assemblies check box, and then click OK.

Publishing status is displayed in the taskbar. Depending on the connection speed, the size of the site and the types of content files, publishing time can vary. When publishing is completed, the status of Publish succeeded is displayed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top