While setting up an instance of the Habitat demo site, I have followed all the steps as in the past but when the Sync Unicorn Gulp task begins, it exits with the following error:
Could not instantiate event handler. Type: Sitecore.ContentSearch.Events.PackagingEventHandler. Method: OnPackageInstallStartingRemoteHandler (method: Sitecore.Events.Event.GetConfigSubscribers()).
I thought maybe there was a problem with one of the resources used in the setup or even the clean instance of Sitecore. Since I get this same error when I try to log into Sitecore.
To be sure, I deleted the Sitecore instance for the Habitat solution and re-deployed with Sitecore SIM. I verified that I could see the default Sitecore home page and also logged in successfully.
Before proceeding, I made sure to have the latest of the following installed:
- Node/NPM (6.9.2 and 3.10.9)
- Bower (1.8.0)
- Gulp (3.9.1)
- Web Essentials 2015.3
- Bundler & Minifier
- Web Compiler
- EditorConfig
I ran npm install
at the root from an elevated command prompt without error.
I then opened Visual Studion as an administrator and ran the default task in Task Runner Explorer for the Solution 'Habitat' and watched it proceed without an errors through the first 4 tasks:
- Copy-Sitecore-License
- Nuget-Restore
- Publish-All-Projects
- Apply-Xml-Transform
When it comes time to run the Sync-Unicorn task, the console displays the error message, which is also displayed when I try to log into Sitecore.
Not sure how diagnose this error or where to look next.