ASP.NET - How to deploy an web application in vs2008?

Asked By Eswaran Radhakrishnan on 13-Oct-09 08:17 AM
Hi all,

I have created a sample web application using vs2008. Now, I need to give it to the client as setup file. How to create setup application in vs2008 for web application?


re - Web Star replied to Eswaran Radhakrishnan on 13-Oct-09 08:38 AM

u need to publish yr web site

Publish Web Application Projects

You can publish ASP.NET Web application projects using Visual Studio or Visual Web Developer Express Edition. When you publish an ASP.NET Web application project, Visual Studio or Visual Web Developer Express Edition compiles the Web application files into a single assembly and then copies the compiled assembly to a specified location. Web application projects share the configuration settings and behavior that are used for standard Visual Studio 2008 class-library projects. You can publish the Web application to a local or shared folder, to an FTP site, or to a Web site that you access by using a URL.

The Publish Web dialog box, which you can access from the Visual Studio or Visual Web Developer Express Edition Build menu, enables you to build and publish Web applications. When you publish the site, you can remove source code from the site. This provides a measure of protection for your intellectual property and makes it more difficult for others to access the source code of your site. For information about what occurs to files during precompilation, see

To publish a Web application project

  1. In the Build menu, click Publish ProjectName.

    The Publish Web dialog box is displayed.

  2. Click the ellipsis button () to browse to the location that you want to publish the Web application project to.

  3. Select the Replace matching files with local copies check box or the Delete all existing files prior to publish check box.

  4. Select how you want to copy the Web application project files to the new location by using Only files needed to run this application, All project files, or All files in the source project folder.

    You can include files from the App_Data folder by selecting the corresponding check box.

  5. Click OK to publish the Web application project.

    In the task bar, Publish succeeded is displayed when publishing has finished.

  6. Make any configuration changes that are required for the Web application at the target location.

    For more information, see


Re - Ravenet Rasaiyah replied to Eswaran Radhakrishnan on 13-Oct-09 08:43 AM


Its easy,

look here step by step details to do in vs 2008

thank you

Yes, "Bill" is right. - [)ia6l0 iii replied to Eswaran Radhakrishnan on 13-Oct-09 11:24 AM

but remember, you would only do this for couple of webservers, and then pass on the url to your clients. 

Alternatively, and more robust way of packaging web applications into MSI with tons of easy configuration options is done thru Wixs. You  can go thru all of it