Monday, November 2, 2009

How to Publish Web Sites (Visual Studio)

Publishing a Web site compiles the executable files in the web site and then writes the output to a folder that you specify. [More]

Before publishing:
1. Check config file for any settings that need to exist at the remote location (e.g. connection strings, membership settings, and other security settings).
2. Check config file for any settings that need to be changed on the published Web site (e.g. Disable debugging, tracing, and custom errors).

To publish:
1. On 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.
3. Other properties:
3a. Allow this precompiled site to be updateable: To be able to change layout (but not code) of .aspx files after publishing.
3b. Enable strong naming on precompiled assemblies: To name strongly named assemblies using key file or key container.
4. Click OK.
Publishing status is displayed in the taskbar. When publishing is completed, status of Publish succeeded is displayed.

After publish:
You can configure your published web sites here.

No comments:

Post a Comment