How to Add Side-by-Side (SXS) Assemblies to a Cloudhouse Compatibility Container
Applies to: Cloudhouse Containers
13/07/2019 Cliff Hobbs ID: 266769
The purpose of this article is to detail how to add Side-by-Side (SXS) assemblies to a Cloudhouse Compatibility Container™.
The Cloudhouse Auto Packager does not configure support for Side-by-Side assemblies. If your application uses Side-by-Side Assemblies, you must add these to the Container as private assemblies.
The following error message will appear in the EventViewer, from which you can determine what assemblies you need along with the version:
“Activation context generation failed for "DemoApplication.exe". Dependent Assembly TowersWatson.Components.Licensing.ComSRM,publicKeyToken="97c62a3c455f5e0d”, type="win32",version="188.8.131.52761" could not be found. Please use sxstrace.exe for detailed diagnosis.”
To add Side-by-Side assemblies to a Cloudhouse Container:
- Place the missing DLLs associated with the run-times in the same folder as the executable being run. Alternatively, use Procmon to monitor the application process along with csrss.exe to determine where the application is looking for these DLLs.
- Locate the DLLs (typically located in C:\Windows\Assembly or C:\Windows\WinSXS folders).
- Copy the DLLs (and .MANIFEST if required) into the same folder as the application executable.