Share via


Deploying Server-Side Components

You can deploy your projects in two main ways — as server-side components run on the Web server, or as Web components and content files that are available for downloading from the Web server. The procedure in this topic shows you how to set up a deployment configuration for a server-side component and deploy it.

The Web server must support server-side components for the service to be displayed in the Deployment Explorer. (For more information on supporting server-side components, see Setting Up a Web Server for Deployment).

The Microsoft development environment uses c:\devcache\svrcmp as the default folder on the Web server to which components are deployed. You can change the default subdirectory in the Server Components properties page (select the Server Components node, right-click, and click Deployment Target Settings).

To deploy server-side components

  1. In the Project Explorer, open the project.

  2. On the Project menu, click New Deployment Target.

  3. In the New Deployment Target dialog box, click Deploy to (URL), type in the URL to the Web server computer (for example, http://mycomputer).

  4. In the Add these project outputs box, clear the project. This prevents the project from automatically going in the Web Contents, Controls & Applets service node.

  5. Click OK.

  6. In the Deployment Explorer, expand the deployment target. For example, you would click on the box icon to the left of Deploy to http://mycomputer.

  7. Select the Server Components service node. On the Projects menu, click Add Project Outputs.

  8. In the Add Project Outputs dialog box, select the project and click OK.

  9. On the Project menu, click Deploy Solution.