Skip to content

Instantly share code, notes, and snippets.

@patrickperrone
Last active November 2, 2017 07:38
Show Gist options
  • Save patrickperrone/dc4f49946a46e005cce2 to your computer and use it in GitHub Desktop.
Save patrickperrone/dc4f49946a46e005cce2 to your computer and use it in GitHub Desktop.
Web.config workaround for Castle Windsor version conflict when using it as the IoC for Glass and Solr-enabled Sitecore 8.
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<!--
This assembly redirection is necessary to support
Glass and Solr simultaneously. GlassV3 wants to use
Castle 3.2+ and Solr wants 3.1. The snippet belows
assumes you want to use Castle 3.3 but it would also
work with 3.2.
-->
<dependentAssembly>
<assemblyIdentity name="Castle.Core" publicKeyToken="407dd0808d44fbdc" culture="neutral" />
<bindingRedirect oldVersion="3.1.0.0 - 3.3.0.0" newVersion="3.3.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Castle.Windsor" publicKeyToken="407dd0808d44fbdc" culture="neutral" />
<bindingRedirect oldVersion="3.1.0.0 - 3.3.0.0" newVersion="3.3.0.0"/>
</dependentAssembly>
<!--
Sitecore has many dependent assemblies that
I've not listed here for brevity's sake.
They must remain in your web.config
-->
</assemblyBinding>
</runtime>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment