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)

E-Commerce in VM Demo AX 2012 R3

(0) ShareShare
ReportReport
Posted on by 640

Dear all,

I am using VM Demo AX 2012 R3 from partnersource.

Whether wwwcontoso is e-commerce website in this VM?

I try to run it from IIS and it open "http://ax2012r2a:40002/sites/RetailPublishingPortal/"

How to use e-commerce website in this VM?

Is there any required additional setup? Because there is error "Sorry, something wrong" in Customer Favorites. I checked the event viewer and the result is like below. Please help. Thank you.

"Unable to communicate with server for upload. Please check username/password, server and database connections. Error Details: System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority 'retail.contoso.com:8303'. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.ConnectStream.WriteHeaders(Boolean async)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---

Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)
at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.SyncWaiter.TryGetChannel()
at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.SyncWaiter.TryWait(TChannel& channel)
at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.TryGetChannel(Boolean canGetChannel, Boolean canCauseFault, TimeSpan timeout, MaskingMode maskingMode, TChannel& channel)
at System.ServiceModel.Channels.ClientReliableChannelBinder`1.Request(Message message, TimeSpan timeout, MaskingMode maskingMode)
at System.ServiceModel.Channels.RequestReliableRequestor.OnRequest(Message request, TimeSpan timeout, Boolean last)
at System.ServiceModel.Channels.ReliableRequestor.Request(TimeSpan timeout)
at System.ServiceModel.Channels.ClientReliableSession.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ReliableRequestSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Dynamics.Retail.SynchClient.Core.UploadServiceReference.IUploadService.GetUploadInterval(String dataStoreName)
at Microsoft.Dynamics.Retail.SynchClient.Core.UploadAgent.Execute()System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority 'retail.contoso.com:8303'. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.ConnectStream.WriteHeaders(Boolean async)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---

Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)
at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.SyncWaiter.TryGetChannel()
at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.SyncWaiter.TryWait(TChannel& channel)
at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.TryGetChannel(Boolean canGetChannel, Boolean canCauseFault, TimeSpan timeout, MaskingMode maskingMode, TChannel& channel)
at System.ServiceModel.Channels.ClientReliableChannelBinder`1.Request(Message message, TimeSpan timeout, MaskingMode maskingMode)
at System.ServiceModel.Channels.RequestReliableRequestor.OnRequest(Message request, TimeSpan timeout, Boolean last)
at System.ServiceModel.Channels.ReliableRequestor.Request(TimeSpan timeout)
at System.ServiceModel.Channels.ClientReliableSession.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ReliableRequestSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Dynamics.Retail.SynchClient.Core.UploadServiceReference.IUploadService.GetUploadInterval(String dataStoreName)
at Microsoft.Dynamics.Retail.SynchClient.Core.UploadAgent.Execute()

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    RamK Profile Picture
    2,580 on at
  • pearl_jo Profile Picture
    640 on at

    Hi RamK,

    Thank you for your response.

    I have read your suggested article. Is it for Azure right?

    Now, I have not Azure account, so I cannot try e-commerce in Azure.

    Could we access e-commerce from vm demo only?

    Thank you.

  • Verified answer
    RamK Profile Picture
    2,580 on at
  • pearl_jo Profile Picture
    640 on at

    Dear RamK,

    Thank you for your information.

    I will try it.

  • pearl_jo Profile Picture
    640 on at

    Dear Ram,

    I have tried the retail component guide you gave before.

    Yesterday, I have succesfully run Retail POS.

    I have successfully run e-commerce website (wwwcontoso) but when register new account, there is something wrong. 

    I have decided to uninstall retail online store in VM Demo, but when I try to re-install retail online store, it is failed. In event viewer, there is error like below.

    Product: Microsoft Dynamics AX for Retail Online Channel -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.  Action ConfigureCustomAction, location: C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Online Channel\tools\ConfigureCustomAction.cmd, command: "C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail Online Channel\tools\" "True" "oob" "DeployRetailOnlineChannel.ps1" "C:\Program Files\Microsoft Dynamics AX\60\Setup Logs\2015-06-10 08-41-53\RetailOnlineChannelConfigure.txt" "1" "UnDeployRetailOnlineChannel.ps1" "StoreFrontPublicSSLCertThumbprint=BCDA22C85A30BC78B1E98A10A24029DD2F1C358E,StoreFrontPublicSSLCertDirectory=C:\Users\Administrator\Documents,StoreFrontPublicSSLCertPfxFileName=ContosoRetail.pfx,StoreFrontPublicSSLCertPfxPassword=pass@word1,StoreFrontWebAppPoolUser=contoso\admin,ProductCatalogWebAppPoolUser=contoso\admin,STSWebAppPoolUser=contoso\admin,RetailJobUser=contoso\admin,ChannelOperatingUnitNumber=068,ChannelDatabaseServerName=AX2012R2A,IdentityProviderDatabaseServerName=AX2012R2A,CustomClaimsProviderDatabaseServerName=AX2012R2A,ChannelDatabaseServerNamedInstanceName=AX2012R2A,IdentityProviderDatabaseServerNamedInstanceName=AX2012R2A,CustomClaimsProviderDatabaseServerNamedInstanceName=AX2012R2A,ChannelDatabaseName=RetailContosoStore,StoreFront_Name=Contoso,SharepointPackageInstanceIdentifier=1,StoreFront_ShoppingCartExpiryTerm=3,ProductCatalogName=Retail Product Catalog Contoso,DestinationId=9AEC9882-8B9B-4937-B6E8-1C7132EDD5C7,PublishingConnectorServiceInstanceServers=%COMPUTERNAME%,FarmAdministratorAlias=%USERDOMAIN%\%USERNAME%,FarmAdministratorEmail=%USERNAME%@%USERDOMAIN%.com,SharePointRelyPartyUrl=www.contoso.com/_trust" "contoso\admin" "cGFzc0B3b3JkMQ==" 

    Now, retail POS is also failed to run. There is error 13000 could not load all external service modules although I have copied “Microsoft.Dynamics.Retail.TestConnector.dll” from “C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin\Connectors” to “C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail POS\Connectors”

    Please help.. Thank you

  • RamK Profile Picture
    2,580 on at

    Hi Pearl_jo, If you have the VM files, create the new one and follow the registration steps again. In my experience, new installation will not work in the VM.  If you are facing any challenges in registration, please let me know

  • pearl_jo Profile Picture
    640 on at

    Dear Ram,

    Thank you for your response. I am very appreciate it. 

    Now, I have another VM that has running retail pos well.

    In there, I have installed retail online store.

    When I try to register a new account, there is another error "We cannot process your request at this time. Please try again later." In event viewer, there is error like below.

    Exception id: , Error message: We cannot process your request at this time. Please try again later.Microsoft.SharePoint.SPException: The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again. ---> System.Runtime.InteropServices.COMException: The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.
    at Microsoft.SharePoint.Library.SPRequestInternalClass.ValidateFormDigest(String bstrUrl, String bstrListName)
    at Microsoft.SharePoint.Library.SPRequest.ValidateFormDigest(String bstrUrl, String bstrListName)
    --- End of inner exception stack trace ---
    at Microsoft.SharePoint.SPGlobal.HandleCanaryValidationException(COMException comEx)
    at Microsoft.SharePoint.Library.SPRequest.ValidateFormDigest(String bstrUrl, String bstrListName)
    at Microsoft.SharePoint.SPWeb.ValidateFormDigest()
    at Microsoft.Dynamics.Retail.SharePoint.Web.Services.ObjectModel.ServiceHelper.ValidatePostRequest()
    at Microsoft.Dynamics.Retail.SharePoint.Web.Services.ObjectModel.ServiceHelper.ExecuteAfterPostRequestValidation(ServiceResponse response, ServiceExecutionHandler executionHandler)

    When I look to Timer Job, Retail Publishing Job is failed and there is also no product in http://myserver:40002/sites/RetailPublishingPortal.

    In event viewer, there is error like below.

    The Execute method of job definition Microsoft.Dynamics.Retail.SharePoint.Connector.RetailPublishingJob (ID 099f97bd-c68f-4ddb-8680-c65fa30e17e6) threw an exception. More information is included below.

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

    I have tried to access SQL Server successfully. Why this error happen? How to solve it?

    Do you have any idea? Thanks in advance.

  • RamK Profile Picture
    2,580 on at
  • pearl_jo Profile Picture
    640 on at

    Dear Ram, 

    Thank you so much for your response.

    But, I think my issue did not caused by SystemNullReferenceException.

    Now, there is new error like below when I try to register account.

    Exception id: NoCustomerIdClaimFoundError, Error message: No customer id claim was returned by the customer claims provider.Microsoft.Dynamics.Commerce.Runtime.DataValidationException: No customer id claim was returned by the customer claims provider.
    at Microsoft.Dynamics.Retail.SharePoint.Web.Services.ObjectModel.ShoppingCartController.GetActiveShoppingCart(ShoppingCartDataLevel dataLevel)
    at Microsoft.Dynamics.Retail.SharePoint.Web.Services.ShoppingCartService.<>c__DisplayClass1.<GetShoppingCart>b__0()
    at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
    at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
    at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
    at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
    at Microsoft.Dynamics.Retail.SharePoint.Web.Services.ObjectModel.ServiceHelper.Execute(ServiceResponse response, ServiceExecutionHandler executionHandler)

    Did you ever experience this?

    After retail online store is installed, what configuration should be done?

    Is it because my Retail Publishing Job still failed?

     

    Thank you.

  • RamK Profile Picture
    2,580 on at

    Hi Pearl, I have not faced this issue.  You post this query as new question, then you will get more answers.

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
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans