we respect your data
At Sagittarius, we want to share our passion and excitement for digital. By providing your details you agree to be contacted by us.
We will treat your personal data with respect and you can find details in our Privacy Statement - this includes:
- What information do we collect about you
- How will we use the information about you
- Access to your information and correction
win with us.
We exist to make your business thrive and our greatest reward is our returning clients. Our focus is and always will be on our clients and not on industry awards and accreditations, which could account for why we’ve won so many of them…
Running uCommerce in Sitecore with Habitat, Unicorn and Synthesis.
We are currently working on a new Sitecore uCommerce build, that we have built on Habitat. In the build we are also making use of Unicorn and Synthesis.
This build is using Sitecore 8.2 rev. 170407, with a clean install of Habitat and we have installed Unicorn and Synthesis through NuGet. Everything was sitting nicely until we need to introduce uCommerce.
uCommerce is installed through a Sitecore package and can be found here - https://ucommerce.net/product/download. We had previously installed this package into a test environment, so we knew that everything worked.
The problem came when we tried to install the package. The installer would crash, and the site would then never respond, causing a stack overflow exception which would kill w3p process, a get stuck in a infinite loop.
You would then see this error in the Event Viewer – here’s our example;
A video of this exception during installation can be viewed here:
There was nothing in the Sitecore logs, and uCommerce logs stated several “Initializing the System Data Provider data” that should only happen once. It was becoming a tricky issue to resolve, until we finally had a break through.
When talking with uCommerce we thought it might be because of the Sitecore's SiteManager.GetSites() getting overwritten by some of the services we were adding to the Sitecore solution (even though at first glance it seems strange if it could be e.g. Synthesis).
So in uCommerce GetSites() gives us a list of hostnames:
So we tried to extend SitecoreDomainService with an empty implementation and see if this could resolve the issue as a work around.
We created a class, SitecoreDisabledDomainService that implements IDomainService, but doesn't do anything. It looks like this;
public class SitecoreDisabledDomainService : IDomainService
return new List
public Domain GetDomain(string domainName)
public Domain GetCurrentDomain()
You can overwrite SitecoreDomainService yourself (in your own solution), by adding the SitecoreDisabledDomainService.cs. Then we added a config patch;
<!-- Configuration for SiteCore specific implementations -->
type="SitecoreDisabledDomainService.SitecoreDisabledDomainService, SitecoreDisabledDomainService" />
So the steps you would use to apply this fix (right from the start are);
Setup SiteCore (Habitat + Unicorn + Synthesis)
- Try to install Ucommerce. I assume it'll crash as in your video. Let it crash!
- Add the attached .dll and .config-file patch (mentioned above) to: [path]\Website\sitecore modules\Shell\uCommerce\Apps
- Do an "iisreset"
- In your browser go to the website, does the site spin up now? You’re welcome!
- Go to "Content Editor"
- If you expand to System > uCommerce > Hostnames, you'll now only see "Default" being listed.