Upgrading Microsoft Unity to 2.1.505.2

Follow

There are some minor issues resolved by Microsoft in Unity 2.1.505.0 and 2.1.505.2 which may be helpful for some Active Commerce customers.

Microsoft Unity 2.1.505.0 Release Notes

Microsoft Unity 2.1.505.2 Release Notes

If you are affected by an issue resolved in one of these updates, and you are on Active Commerce 3.1 or 3.2, you can upgrade your Active Commerce instance using the following instructions.

NOTE: Active Commerce does not support Unity 3.0 or 3.5!

 

Upgrade Steps

  1. In your Sitecore project, utilize nuget to install version 2.1.505 of the Unity and Unity.Interception packages.
    install-package Unity -version 2.1.505
    install-package Unity.Interception -version 2.1.505
  2. Reference the updated Unity DLLs or otherwise ensure that they deploy to your Active Commerce environment. Deployed assemblies should be:

    Microsoft.Practices.Unity.dll
    Microsoft.Practices.Unity.Configuration.dll
    Microsoft.Practices.Unity.Interception.dll

  3. Update the <assemblyBinding> section of your Web.config to redirect assembly references to the new versions.
    <dependentAssembly>
    	<assemblyIdentity name="Microsoft.Practices.Unity" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    	<bindingRedirect oldVersion="2.0.414.0" newVersion="2.1.505.0" />
    </dependentAssembly>
    <dependentAssembly>
    	<assemblyIdentity name="Microsoft.Practices.Unity.Configuration" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    	<bindingRedirect oldVersion="2.0.414.0" newVersion="2.1.505.0" />
    </dependentAssembly>
    <dependentAssembly>
    	<assemblyIdentity name="Microsoft.Practices.Unity.Interception" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    	<bindingRedirect oldVersion="2.0.414.0" newVersion="2.1.505.0" />
    </dependentAssembly>
    
  4. Thoroughly test your Active Commerce site and any customizations before deploying to production.
Have more questions? Submit a request

Comments