Documentation Center

Enabling 51 Degree's Lite data set download on web application startup (.NET)

You can trigger the download of the 51Degrees Lite data set with the SDL Digital Experience Accelerator (DXA) startup.

About this task

Once you have installed the 51Degrees module, DXA will check for the Lite data set in your environment, and download it if it is missing. This happens with the first request made to the website. As a result, the first request to the website is blocked until the Lite data set is downloaded. To avoid this, you can configure the service autostart provider to trigger the Lite data set download on the web application startup.

Procedure

  1. Open Internet Information Services (IIS) Manager.
  2. In the Connections page, click the server name.
  3. In the Home pane, double-click the Configuration Editor feature.
  4. From the Section drop-down list, select serviceAutoStartProviders.
  5. In the Actions pane, click Add.
  6. In the Collection Editor dialog box:
    1. In the name field, enterDegrees51PreloadClient.
    2. In the type field, enter Sdl.Web.Modules.Degrees51.Degrees51PreloadClient, Sdl.Web.Modules.Degrees51, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
    3. Close the dialog box.
  7. In the Actions pane, click Apply.
  8. Open Advanced Settings for your DXA Application Pool.
  9. In the General section, set Start Mode attribute value to AlwaysRunning and click OK.
  10. Go to the Sites folder in the Connections pane, and open Advanced Settings for your DXA website.
  11. In the General section, set Preload Enabled attribute value to True and click OK.
  12. Reset Internet Information Services (IIS) Manager.

What to do next

To verify your changes, go to C:\Windows\System32\inetsrv\config\applicationHost.config.