Documentation Center

Making custom code work with new Content Delivery .NET assemblies

If you created custom code that interacts with (parts of) Content Delivery running as a .NET Web application, then in order to work with Content Delivery now, your custom code requires policy files that resolve DLL versioning conflicts. Copy these policy files (and the new Content Delivery DLLs) to your Windows assembly on the machine that runs your custom code.

Procedure

  1. Access the Windows machine on which your custom code runs as an administrator user.
  2. On the SDL Tridion Sites installation media, navigate to the folder Content Delivery\resources\policies\.
  3. Open a command prompt.
  4. If your custom code currently interacts with SDL Web 8.5, then execute the following commands (you can skip a step if your custom code does not interact with that specific DLL):
    • gacutil /i policy.8.5.Sdl.Web.Context.Api.dll
    • gacutil /i policy.8.5.Sdl.Web.Context.Common.dll
    • gacutil /i policy.8.5.Sdl.Web.Context.Core.dll
    • gacutil /i policy.8.5.Sdl.Web.Context.Interop.dll
    • gacutil /i policy.8.5.Sdl.Web.Context.ServerControls.dll
    • gacutil /i policy.8.5.Tridion.ContentDelivery.AmbientData.dll
    • gacutil /i policy.8.5.Tridion.ContentDelivery.Configuration.dll
    • gacutil /i policy.8.5.Tridion.ContentDelivery.dll
    • gacutil /i policy.8.5.Tridion.ContentDelivery.Interop.dll
    • gacutil /i policy.8.5.Tridion.ContentDelivery.Preview.dll
    • gacutil /i policy.8.5.Tridion.ContentDelivery.UGC.dll