Error: Missing source parameter ‘SOLR Zookeeper Connection String’

I was attempting to install a Sitecore 9.0.2 instance today when I ran into this error:

[-------------------------------------------------------------------------------------------------------- InstallWDP : WebDeploy ---------------------------------------------------------------------------------------------------------]
[WebDeploy]:[Path] C:\Program Files\iis\Microsoft Web Deploy V3\msdeploy.exe
Error: Missing source parameter 'SOLR Zookeeper Connection String' (SOLR Zookeeper Connection String). This must be set for successful synchronization.
Error count: 1.
Install-SitecoreConfiguration : Command C:\Program Files\iis\Microsoft Web Deploy V3\msdeploy.exe returned a non-zero exit code - (-1)
At C:\sc9u2\install_keystone10.ps1:79 char:1
+ Install-SitecoreConfiguration @sitecoreParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration
[TIME] 00:00:30
Transcript stopped, output file is C:\sc9u2\sitecore-XP0.181029.log
Invoke-CommandTask : Command C:\Program Files\iis\Microsoft Web Deploy V3\msdeploy.exe returned a non-zero exit code - (-1)
At C:\Program Files\WindowsPowerShell\Modules\SitecoreInstallFramework\1.2.1\Public\Tasks\Invoke-WebDeployTask.ps1:36 char:2
+ Invoke-CommandTask -Path $Path -Arguments $msdeployArgs -TaskName ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-CommandTask

After a bit of searching I discovered there wasn’t really anyone else reporting this issue. Usually when that happens you know you’ve done something really dumb.

In my case it turns out it was because I had tried to reuse the config files, more specifically sitecore-XP0.json. I deleted the .json files from my install folder and extracted a fresh copy from XP0 Configuration files 9.0.2 rev. 180604.zip. At this point I compared it to my old one in notepad and low and behold the ones from the proper zip file had this line in it:

"SolrZookeeperUrl": {
"Type": "string",
"DefaultValue": "localhost:2181",
"Description": "The Zookeeper instance to use."
},

Yup, there you have it. My laziness only cost me more time in the end.

  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
read comments

Sitecore Error: Could not load type ‘Sitecore.Web.Application’

I ran into this slight annoyance today while doing a Web Deploy. For the four months that I’ve been working on this project I’ve been publishing to my sitecore instance in the wwwroot folder and have had no issues. Today I created another empty folder to deploy to as I just wanted to the files that the client would need to deploy. Unfortunately as soon as I changed the output directory I started getting this error:

Sitecore Error: Could not load type 'Sitecore.Web.Application'

The first thing I did was check my references as I knew there was one with a yellow exclamation I had been putting off dealing with. Sure enough, it was Sitecore.Web.dll. So I removed it from the project, found the correct DLL in the sitecore instance’s DLL folder, copied that into the project’s references folder and added it back to the project. That should be all, right?

Nope.

I was stil running into the same error. It would build fine, but not deploy. So I tried setting the Sitecore.Web.dll to Copy Local = true and that alone did not fix it. I then set the same setting on the Sitecore.Kernel.dll and then I was able to publish to an empty directory.

I just wanted to share that quick solution as I only had two hits for that error and both of their solutions were a fair bit different from mine. It’s a bit of a frustrating nuance of Sitecore for me as you are always directed to set Copy Local = false during the initial setup of a project. That also seems to lead to other issues for me such as my intellisense not working.

  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
read comments

Sitecore 9 Forms – The form was not loaded due to an error

So today I decided to try out Sitecore 9’s Forms engine for the first time.

I clicked on the Create button and then selected Blank Form

From there I was greeted with this error

The form was not loaded due to an error

Great. My first form isn’t going well.

So I opened up the main log and saw this error:

10616 17:08:37 ERROR Application error.
Exception: System.InvalidOperationException
Message: The partial view 'Form' was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/FormBuilder/Form.cshtml
~/Views/FormBuilder/Form.vbhtml
~/Views/Shared/Form.cshtml
~/Views/Shared/Form.vbhtml
~/views/renderers/Form.vbhtml
~/views/renderers/Form.cshtml
~/Views/FormBuilder/Form.aspx
~/Views/FormBuilder/Form.ascx
~/Views/Shared/Form.aspx
~/Views/Shared/Form.ascx
Source: System.Web.Mvc
   at System.Web.Mvc.PartialViewResult.FindView(ControllerContext context)
   at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Ahah! I know what happened. A few weeks back I was cleaning up the project directory and inside the Views folder I got rid of the Examples and FormBuilder folders. I knew Examples wasn’t needed and I guess I didn’t really think through the other one before deleting it.

So I copied the folder over from another fresh install of Sitecore, went back into the Forms screen and tried creating another form…

Now that looks better!

Tags: ,

  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
read comments
 Page 1 of 73  1  2  3  4  5 » ...  Last »