web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error in configuring Retail Server through Powershell

(0) ShareShare
ReportReport
Posted on by 1,066

I have already updated the rs-setting.xml file as:

<Settings>
<Setting key="ChannelDatabaseServerName" value="WIN-TK5BGIU5DQ3" />
<!-- Note: Format for a SQL instance name is either the server name or the full instance name. I.e. valid names are: "localhost", "localhost\instance2", "server1", "server1\instance2"-->
<Setting key="ChannelDatabaseServerNamedInstanceName" value="MSSQLSERVER" />
<Setting key="ChannelDatabaseName" value="RetailHoustonStore" />

<Setting key="RetailServerWebAppPoolName" value="RetailServer" />
<Setting key="RetailServerWebSiteName" value="RetailServer" />
<Setting key="RetailServerWebSiteHttpPort" value="80" />
<Setting key="RetailServerWebSiteHttpsPort" value="443" />
<Setting key="RetailServerWebApplicationName" value="RetailServer" />
<Setting key="RetailServerWebSiteSSLCertificateStore" value="My" />
<Setting key="RetailServerWebSiteSSLCertificateRootStore" value="LocalMachine" />
<Setting key="RetailServerWebSiteWorkingFolder" value="%SystemDrive%\inetpub\wwwroot" />
<Setting key="RetailServerWebAppPoolUser" value="HOUSTON0\Administrator" />
<Setting key="RetailServerWebSiteSSLCertificateThumbprint" value="‎e7b6469d00457be4b1cd4cc714c239a3470e56be" />
<Setting key="RetailServerWebApplicationServiceBinarySourceFolder" value="D:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Server\Package" />
<Setting key="RetailServerWebApplicationWorkingFolder" value="[RetailServerWebSiteWorkingFolder]\[RetailServerWebApplicationName]" />
<Setting key="RetailServerAllowAnonymousMetadata" value="true" />
<Setting key="RetailServerRequireSSL" value="true" />
</Settings>

To configure the retail server through powershell I used the below commands:

$Cred = @((New-Object System.Management.Automation.PSCredential(‘HOUSTON0\Administrator',(ConvertTo-SecureString 'pass@word1' -AsPlainText -Force)))) ----> This worked fine

 

.\DeployRetailServer.ps1 -SettingsXmlFilePath "D:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Server\Tools\rs-settings.xml" -TopologyXmlFilePath "D:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Server\Tools\rs-topology.xml" -Credentials $Cred –Verbose $true ---> This showed the below error....

 

04-01-2018 14:00:15: Setting up existing Web Site and Web Application working folder parameters to WebSiteConfig if any

04-01-2018 14:00:15: ############### Error occured: ###############

04-01-2018 14:00:15:

 

PSMessageDetails      :

Exception             : System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for c

omponent with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154 Class not registe

red (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

                           at Microsoft.IIs.PowerShell.Framework.Configuration.QueryToStream(String xpath, String locati

on, PipelineStreamWriter writer, QueryFlags queryFlags)

                           at Microsoft.IIs.PowerShell.Provider.GetConfigurationCommand.ProcessRecord()

                           at System.Management.Automation.Cmdlet.DoProcessRecord()

                           at System.Management.Automation.CommandProcessor.ProcessRecord()

TargetObject          :

CategoryInfo          : NotSpecified: (:) [Get-WebConfiguration], COMException

FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.IIs.PowerShell.Provider.GetConfigurationCo

mmand

ErrorDetails          :

InvocationInfo        : System.Management.Automation.InvocationInfo

ScriptStackTrace      : at Update-WebSiteConfigWithInstallFolderOverrides, D:\Program Files (x86)\Microsoft Dynamics AX\

60\Retail Server\Tools\Common-Web.ps1: line 1481

                        at Install-WebApplication, D:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Server\Tools\C

ommon-Web.ps1: line 1527

                        at <ScriptBlock>, D:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Server\Tools\DeployReta

ilServer.ps1: line 225

                        at <ScriptBlock>, <No file>: line 1

PipelineIterationInfo : {}

 

 

 

 

04-01-2018 14:00:15: ############### Error occured: ###############

04-01-2018 14:00:15: Failed to install web application [RetailServer]

04-01-2018 14:00:15: ############### Error occured: ###############

04-01-2018 14:00:15:

 

PSMessageDetails      :

Exception             : System.Management.Automation.RuntimeException: Failed to install web application [RetailServer]

TargetObject          : Failed to install web application [RetailServer]

CategoryInfo          : OperationStopped: (Failed to insta... [RetailServer]:String) [], RuntimeException

FullyQualifiedErrorId : Failed to install web application [RetailServer]

ErrorDetails          :

InvocationInfo        : System.Management.Automation.InvocationInfo

ScriptStackTrace      : at Throw-Error, D:\Program Files (x86)\Microsoft Dynamics AX\60\Retail

                        Server\Tools\Common-Configuration.ps1: line 1147

                        at Install-WebApplication, D:\Program Files (x86)\Microsoft Dynamics AX\60\Retail

                        Server\Tools\Common-Web.ps1: line 1537

                        at <ScriptBlock>, D:\Program Files (x86)\Microsoft Dynamics AX\60\Retail

                        Server\Tools\DeployRetailServer.ps1: line 225

                        at <ScriptBlock>, <No file>: line 1

PipelineIterationInfo : {}

 

 

 

 

Executed:

D:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Server\Tools\DeployRetailServer.ps1

Parameter: SettingsXmlFilePath Value: D:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Server\Tools\rs-settings.xm

l

Parameter: TopologyXmlFilePath Value: D:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Server\Tools\rs-topology.xm

l

Parameter: Credentials Value: System.Management.Automation.PSCredential[]

Parameter: Verbose Value: True

 

Exiting with error code 2.

PS D:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Server\Tools>

Please could somebody help me out with this


 

*This post is locked for comments

I have the same question (0)
  • vivo88 Profile Picture
    1,066 on at

    Still facing the same problem.

  • Verified answer
    RAVINDER RANA Profile Picture
    685 on at

    Hi Vickram,

    Check your port setting , i think the port is already used in some other website.

    Try by changing the port number ....

    Thanks

    Ravinder Rana

    AX Retail Functional

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Scott_itD Profile Picture

Scott_itD 2 Community Manager

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans