Modifying the Application Management Service Web.config File

Find the following sections in the Application Management Service Web.config file, and then, if necessary, modify the highlighted lines of code. In this example, the following lines of code are highlighted:

  • In the CONNECTION STRINGS section, two instances of connectionString=”Server=CS1157-E0406 are highlighted.

  • In the DCS SERVICEMODEL section, dnsAlias="CS1157-E0406 and https://CS1157-E0406/DiscoveryService/DiscoveryService.svc are highlighted.

  • In the SYSTEM WEB section, Server=CS1157-E0406 and HostProxyUrl="https://CS1157-E0406/AppManagementService/WorkflowManagementService.svc are highlighted.

  • <!--  CONNECTION STRINGS
       =============================================================
      -->
      <connectionStrings>
        <!--  common connection strings -->
        <add name="DCSManagementDb" connectionString="Server=CS1157-E0406;Initial Catalog=DCSManagementDB;Integrated Security=Yes;" providerName="System.Data.SqlClient"/>
        <add name="policyConfiguration" connectionString="Server=CS1157-E0406;Initial Catalog=ServiceConfiguration;Integrated Security=Yes;" providerName="System.Data.SqlClient"/>
        <!--<add name="businessLog" connectionString="Server=(local);Initial Catalog=businessLog;Integrated Security=Yes;" providerName="System.Data.SqlClient"/>-->
    </connectionStrings>
    
    <!--  DCS SERVICEMODEL
       =============================================================
      -->
      <cis.serviceModel>
        <serviceFactory>
          <httpBaseAddress dnsAlias="CS1157-E0406"/>
          <defaultServiceConfiguration serviceBehavior="DCSBehavior">
            <defaultEndpoint behaviorConfiguration="enableTracing">
              <defaultSimplexBinding binding="extendedHttpBinding" bindingConfiguration="simplex"/>
              <defaultDuplexBinding binding="extendedHttpBinding" bindingConfiguration="duplex"/>
            </defaultEndpoint>
          </defaultServiceConfiguration>
        </serviceFactory>
    <channelFactory>
    <discoveredEndpoint compositeBaseAddress="" behaviorConfiguration="enableTracing" useDefaultWebProxy="false"/>
    <mexDiscoveryEndpoint address="https://CS1157-E0406/DiscoveryService/DiscoveryService.svc" binding="basicHttpBinding" bindingConfiguration="discovery"/>
    <scopeRanking type="Microsoft.ConnectedIndustry.ServiceModel.Application.ScopeRanking,Microsoft.ConnectedIndustry.ServiceModel.Application,Version=1.0.0.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    </scopeRanking>
    <scopeProvider type="Microsoft.ConnectedIndustry.ServiceModel.Application.ScopeProvider,Microsoft.ConnectedIndustry.ServiceModel.Application,Version=1.0.0.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    </scopeProvider>
    </channelFactory>
    </cis.serviceModel>
    
    <!--  SYSTEM WEB
       =============================================================
       this section contains list of assemblies exposing the interface
       of services
      -->
      <system.web>
        <compilation debug="true">
          <assemblies>
            <add assembly="Microsoft.ConnectedIndustry.ProcessExecution.Configuration.Services, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add assembly="Microsoft.ConnectedIndustry.ServiceModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add assembly="Microsoft.ConnectedIndustry.ServiceModel.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
          </assemblies>
        </compilation>
      </system.web>
    
      <WorkflowHost Name="WorkflowHost">
        <CommonParameters>
          <add name="ConnectionString" value="Database=WorkflowPersistenceStore;Server=CS1157-E0406;Integrated Security=Yes;"/>
        </CommonParameters>
        <Services>
          <!--<add type="System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService, System.Workflow.Runtime, Version=3.0.00000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" UnloadOnIdle="true" LoadIntervalSeconds="20" OwnershipTimeoutSeconds="120"/>-->
          <add type="
             Microsoft.ConnectedIndustry.ProcessExecution.WorkflowHost.ExtendedSqlWorkflowPersistenceService,
             Microsoft.ConnectedIndustry.ProcessExecution.WorkflowHost, version=1.0.0.0, Culture=neutral,
             PublicKeyToken=31bf3856ad364e35" UnloadOnIdle="true" PersistOnIdle="true" LoadIntervalSeconds="20" OwnershipTimeoutSeconds="360" ConnectionString="Database=WorkflowPersistenceStore;Server=CS1157-E0406;Integrated Security=Yes;" ApplicationId="078E8A7E-5373-4C00-9C87-53D3E5C18873" HostProxyUrl="https://CS1157-E0406/AppManagementService/WorkflowManagementService.svc"/>
        </Services>
      </WorkflowHost>
    
    </configuration>