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. |
To configure deployment settings in Visual Studio
- On the Tools menu In Visual Studio, click Options.
- In the Options dialog box, in the tree view, expand DCS, and then click Service Publishing.
- 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.
-
assemblies services tasks assembly="%ServiceFile%" targetDir="E:\Websites\WeatherInformationService" - Under Discovery, change the ServiceURL property to http://localhost/WeatherInformationService.
The following image shows the Options dialog box.
The Options dialog box configured to deploy the WeatherInformationService to the E:\Websites\WeatherInformationService folder, and to configure an endpoint on http://localhost/WeatherInformationService
- Click OK to apply the changes.
To deploy a service by using Visual Studio
- In Solution Explorer, right-click WeatherInformationBLSpecific, and then click Deploy Assembly.
- 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.
A console window containing a successful deployment message for the WeatherinformationService DCS Service
Note: