Share via


Walkthrough: Deploying DCS Services by Using Visual Studio

This walkthrough shows how to use Visual Studio to deploy a DCS service named WeatherInformationService to a Web site. The Web site is named WeatherService hosted on the local computer. The WeatherService Web site uses the E:\Websites\WeatherInformationService folder to hold the files for the Web site. For detailed instructions about creating the WeatherService service, see Walkthrough: Implementing a Service by Using a Specific Workflow. For additional information about deploying DCS Services, see Deploying DCS Services.

Note

This walkthrough assumes that you have configured the appropriate security settings for the Web site, and that you have created a Web.config file containing the configuration settings for the Web site.

Detailed Instructions

To configure deployment settings in Visual Studio

  1. On the Tools menu In Visual Studio, click Options.

  2. In the Options dialog box, in the tree view, expand DCS, and then click Service Publishing.

  3. In the Properties window, under DeploymentSettings, click DeploymentToolArguments, and then modify the targetDir string to deploy the service to the E:\Websites\WeatherInformationService path. The full property value should resemble the following.

  4. assemblies services tasks assembly="%ServiceFile%" targetDir="E:\Websites\WeatherInformationService"
    
  5. Under Discovery, change the ServiceURL property to https://localhost/WeatherInformationService.

  6. The following image shows the Options dialog box.

  7. Dd632084.049e2a36-7bdb-4b14-8227-d3d1d04a54e6(en-us,MSDN.10).png

  8. The Options dialog box configured to deploy the WeatherInformationService to the E:\Websites\WeatherInformationService folder, and to configure an endpoint on https://localhost/WeatherInformationService

  9. Click OK to apply the changes.

To deploy a service by using Visual Studio

  1. In Solution Explorer, right-click WeatherInformationBLSpecific, and then click Deploy Assembly.

  2. Visual Studio builds the project and makes sure that there are no errors. Then it displays a console application that contains deployment messages. When deployment has finished, you should see a message that resembles the one shown in the following image.

  3. Dd632084.3906105c-228b-4036-bba5-012b208a4915(en-us,MSDN.10).png

  4. A console window containing a successful deployment message for the WeatherinformationService DCS Service

See Also

Walkthrough: Implementing a Service by Using a Specific Workflow

Deploying DCS Services