The response time of a service application is slower than expected the first time that it is called in Microsoft Customer Care Framework 2009

S’applique à : Microsoft Customer Care Framework 2009

Symptoms


When a service application is first called in Microsoft Customer Care Framework 2009, the response time of the service application is slower than expected.

Cause


This problem occurs because an in-memory cache is created when an available service, task, task filter, connection string, connection string filter, or task dependency is started for a service application in Microsoft Customer Care Framework 2009. The Microsoft Distributed Connectivity Services (DCS) creates the cache after DCS receives the first call for the service application. When DCS creates the cache, the specific service assembly is loaded into memory in addition to all the other service assemblies that the service application requires. This loading process causes the response time of the service application to be slower than expected the first time that the service application is called.

Resolution


To resolve this problem, apply this hotfix. After this hotfix is installed, the in-memory cache is loaded as each service is required.

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

You must apply this hotfix to a computer that is running the following:
  • Distributed Connectivity Services (DCS) Service Pack 1 (SP1)
  • DCS Service Pack 1 (SP1) Business Logic Visual Studio Extensions

Restart information

You do not have to restart the computer after you apply this hotfix. However, you must restart the Internet Information Services (IIS) service.

Installation information

  1. Apply this hotfix to a computer that hosts the DCS core services and the target service applications.
  2. Update the following variables in the Taskcache_slowloading_fixdll.bat file to actual values:
    SET APP_SOURCEPATH =".\ Microsoft.ConnectedIndustry.ProcessExecution.Common.dll"
    Update the DCS installation path for the following variable:
    SET DCS_PATH=C:\Program Files\Microsoft CIS
    Update the DCS VS extension installation path for the following variable:
    SET DCS_EXT_PATH=C:\Program Files\Microsoft CIS
    Update the Visual Studio installation path for this variable:
    SET VS_PATH=C:\Program Files\
  3. Exit all running instances of Microsoft Visual Studio.
  4. In the MMC, close all open DCS snap-ins.
  5. As an administrator, run the Taskcache_slowloading_fixdll.bat file at a Visual Studio command prompt.
  6. For the DCS-based services that are already deployed, update the Microsoft.ConnectedIndustry.ProcessExecution.Common.dll assembly in the bin folder under the mapped virtual directory for the DCS-based service.

The batch file modifies the dbo.InsertTask and the dbo.UpdateTask that are stored procedures in the DCSManagementDB database, and the batch file replaces the Microsoft.ConnectedIndustry.ProcessExecution.Entities.dll file in the following locations:
  • C:\Program Files\Microsoft CIS\DCS\V1.0\Bin
  • C:\Program Files\Microsoft CIS\DCS Business Logic Visual Studio Extensions VS2008\DeploymentTool
  • C:\Program Files\Microsoft CIS\DCS Business Logic Visual Studio Extensions VS2008\ProxyBuilder
  • C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies

Additionally, the batch file adds the Microsoft.ConnectedIndustry.ProcessExecution.Common.dll file to the Global Assembly Cache (GAC).

File information

The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

File nameFile versionFile sizeDateTime
Microsoft.connectedindustry.processexecution.common.dll1.5.0.135153,42430-Aug-201006:58
Read me.docNot Applicable61,95231-Aug-201004:23
Taskcache_slowloading_fixdll.batNot Applicable4,67930-Aug-201006:58

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.