Documentation Center

Adding the Context Service client cache configuration to your Web.config

If you run the Context Service client inside a .NET Web application, modify Web.config to enable caching for this feature.

Procedure

  1. In your .NET Web application, open Web.config for editing.
  2. From your installation media, open Content Delivery\roles\context\api\dotnet\config\application.config.
  3. In application.config, from within the <configSections> section, copy the sectionGroup section with its name attribute set to userSettings to your clipboard.
  4. In Web.config, paste this element into the <configSections> section.
  5. In application.config, copy the <system.runtime.caching> and <userSettings> sections to your clipboard.
  6. In Web.config, paste this element anywhere within the root <configuration> section, below the <appSettings> section.
  7. Save and close Web.config.