Sitecore XP/XC 10 installation fails at WebDeploy task


 Recently I have encountered the error below when trying to run the WebDeploy task.

Install-SitecoreConfiguration : Command C:\Program Files\iis\Microsoft Web Deploy V3\msdeploy.exe returned a non-zero

exit code - (-1073741819)

At C:\SitecoreXC10_Install\XC10\SIF.Sitecore.Commerce.5.0.42\sc100_com_install.ps1:292 char:5

+     Install-SitecoreConfiguration @deployCommerceParams -Verbose *>&1

+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException

    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration

Normally it could be fixed by installing the following missing prerequisites

  • Microsoft ODBC Driver for SQL Server 
  • Microsoft Command Line Utilities for SQL Server
  • DacFx and SQLSysCLRTypes.
However I tried install/reinstall all the them but still failing.

With a stroke of luck, I closed the normal powershell window and reopen another one in x86 mode & ran that task.

This time, it executed successfully!

My guess is that somewhere in my local PC, WebDeploy is configured to run only in x86 mode of Powershell.

If someone can point me into fixing that, let me know in the comment.

For now, this is good enough for me to carry on.

Happy Sitecoring!

Comments

Popular posts from this blog

[Azure App Service] Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Value cannot be null. Parameter name: address

Troubleshooting Sitecore XP 9.2 - Experience Analytics error - Exception System.ArgumentNullException: typeKey should not be null.