Adding the Ambient Data Framework client to a .NET web application
Set up the Ambient Data Framework client in a web application by editing its Web.config file.
Procedure
- Open Web.config for editing in the root folder of this web application.
- To enable the Ambient Data Framework, do the following:
- Application Pool in Classic Mode
-
Ensure the presence of the following inside the
<httpModules>section inside the<system.web>section (create an<httpModules>element if it does not yet exist):<add type="Tridion.ContentDelivery.AmbientData.HttpModule" name="Tridion.ContentDelivery.AmbientData.HttpModule" />To enable the Ambient Data Framework for static webpages, also do the following:
- Ensure the presence of the following inside the
<handlers>section inside the<system.webServer>section (create a<handlers>section if it does not yet exist):<remove name="StaticFile" /> <add name="StaticFile" path="" verb="" modules="IsapiModule,StaticFileModule,DefaultDocumentModule,DirectoryListingModule" scriptProcessor="c:\PATH\TO\DOTNET\aspnet_isapi.dll" resourceType="Either" requireAccess="Read" preCondition="bitness64" />where c:\PATH\TO\DOTNET\ is the path to your .NET Framework root folder, for example, C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.
If you run 32-bit .NET, remove the
preConditionattribute. - Ensure the presence of the following inside the
<httpHandlers>section inside the<system.web>section (create an<httpHandlers>section if it does not yet exist):<add verb="GET" path="*.jpg" type="System.Web.StaticFileHandler" />
- Ensure the presence of the following inside the
- Application Pool in Integrated Mode
-
Add the following inside the
<modules>section inside the<system.webServer>section (create a<modules>element if it does not yet exist):<add type="Tridion.ContentDelivery.AmbientData.HttpModule" name="Tridion.ContentDelivery.AmbientData.HttpModule" />
- Save and close Web.config.
- Restart the web application.