Skip to main content

Posts Tagged ‘xdt’

Web.config Transformation and XPath to update bindingRedirect

You can use Web.config transformations to update the bindingRedirect element in the web.config of an asp.net website.  This is more complex than other xdt transforms because the only identifying information is in a sibling assemblyIdentity element.  For example, the configuration for the default Sitecore System.Web.MVC dependentAssembly element looks like the following: <configuration> <runtime> <assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″> <dependentAssembly> <assemblyIdentity name=”System.Web.Mvc” publicKeyToken=”31bf3856ad364e35″ xmlns=”urn:schemas-microsoft-com:asm.v1″ /> […]