Sitecore 9 was announced at the recently held Sitecore Symposium 2017 and it comes with lots of new features and improvements. One of the major change to the platform is the way you install Sitecore on a server or local machine. The standard .exe installer has been replaced with a Windows PowerShell module which is called Sitecore Installation Framework (SIF). The SIF comes with Sitecore related pre-built tasks and configuration files to facilitate installation of Sitecore.
As a Sitecore enthusiast, I wanted to get my hands dirty with this new SIF module. After reading the official guide, I found out there were few pre-requites that were required even before running the SIF module. The 2 main ones were SQL Server 2016 and SOLR 6.6.1. In addition, the Solr instance must be running over https to make sure all the communication is secured.
The details of the installation process is given in the official guide but I will just mention few high level steps for local install:
Step 1: Configure and Install SOLR
So lets install Solr, sounds easy as I have done it few times before and I am sure you would have too. However, installing the secure certificate was bit tricky on localhost, but thanks to the Sitecore community, this SSL script from Kam’s blog worked like a charm and I had Solr 6.6.1 running over https in no time.
Step 2: Install SQL Server 2016
I had multiple versions of SQL Server (2012,2014) running side by side on my machine and installation of SQL Server 2016 Express wasn’t a problem as well. I ran the standard SQL Server 2016 installer and it was installed as expected (or I thought so).
Step 3 : Install Sitecore via SIF
As per the installation guide, I registered the SIF module via PowerShell and ran the following script: (I just added -Verbose at the end of each command so I can see the debug information during install)
I was expecting it to install Sitecore 9, but after the first run I got this error:
The error suggested that I have to install additional SQL server modules for Web Deploy to work, as given on the Microsoft’s website
The group of 3 errors listed above share the following diagnosis and resolution:
Diagnosis: SQL DAC and its dependencies are not installed.
Resolution: Use Web Platform Installer to install:
- Microsoft SQL Server 2012 Data-Tier Application Framework
- SQL Server 2012 Transact-SQL ScriptDom
- SQL Server System CLR Types 11.0
I installed the above dependencies and ran the script. It failed again with the same error message.
I was sure that my SQL server installation is correct and I have installed module related to ScriptDom but what is wrong with Web Deploy ?
Then I found this article on Sitecore KB https://kb.sitecore.net/articles/019579 for Sitecore Azure Toolkit 1.1 which mentioned to add registry values for the Web Deploy for DAC dependencies path.
I was bit skeptical at first but decided to go ahead with this approach. I added the 2 registry values via regedit. For one of the values, I have to point the path to the recently installed SQL Server 2016 SDK folder. For the second registry value, I have to point the path towards VS 2015 DAC folder. I do want to mention here I also had multiple versions of VS (2013, 2015 and 2017) installed on my local machine.
The registry values were:
DacFxDependenciesPath : C:\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies DacFxPath : C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\130
The actual screen shot of the registry values for Web Deploy:
Ran the script again and BOOM! it worked.
So it turns out since I had multiple version of SQL servers and also multiple versions of VS installed on my local machine, the Web Deploy 3.6 was not able to figure out what is the path for the SQL dependency dlls to install the SQL DAC packages for Sitecore 9.
By the way, if you are installing Sitecore 9 for the first time, Do check out the following posts:
How to Install Sitecore 9 with the Sitecore Install Framework
Gotchas while installing Sitecore 9 using the Sitecore installation framework
The lazy developer’s way to install Sitecore 9
Introducing SIF-less for Easy Sitecore 9 Installation
Low-effort SOLR Installs
I hope this blog will help any other developer facing the same error.
Happy Sitecoring 🙂