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)

MPOS Login Error

(0) ShareShare
ReportReport
Posted on by 8,223

Hi Friends ,

as per the below link when you are browsing Retail Server web site you will see XML view

http://gauravwaveq.blogspot.com/2014/05/retail-server-installation-and.html,

but in my thing i'm getting error like below .still couldn't figured out

<m:code>
Microsoft.Dynamics.Commerce.Runtime.UserAuthorizationException
</m:code>
<m:message xml:lang="en-US">
<?xml version="1.0" encoding="utf-8"?> <d:root xmlns:d="schemas.microsoft.com/.../dataservices" xmlns:m="schemas.microsoft.com/.../metadata" xmlns:georss="www.georss.org/georss" xmlns:gml="www.opengis.net/gml" m:type="Microsoft.Dynamics.Commerce.Runtime.UserAuthorizationException"> <d:Message>Assigned role is not allowed to perform this operation.</d:Message> <d:ErrorResourceId>Microsoft_Dynamics_Commerce_Runtime_AuthorizationFailed</d:ErrorResourceId> <d:HelpLink m:null="true" /> <d:Source>Microsoft.Dynamics.Commerce.Runtime.Services</d:Source> </d:root>
</m:message>
</m:error>
I did necessary changes to rs Setting file but error is still there ,
Event log says,

CommerceRuntimeException was thrown.Microsoft.Dynamics.Commerce.Runtime.UserAuthorizationException: Assigned role is not allowed to perform this operation.
at Microsoft.Dynamics.Commerce.Runtime.Services.CommerceAuthorization.CheckAccess(CommercePrincipal principal, RetailOperation operationId, RequestContext context, String[] allowedRoles, Boolean deviceTokenRequired, Boolean nonDrawerOperationCheckRequired)
at Microsoft.Dynamics.Commerce.Runtime.Services.UserAuthenticationService.CheckAccess(CheckAccessServiceRequest request)
at Microsoft.Dynamics.Commerce.Runtime.Services.UserAuthenticationService.ExecuteRequest[TResponse](ServiceRequest request)
at Microsoft.Dynamics.Commerce.Runtime.Services.Service.Execute[TResponse](ServiceRequest request)

any Idea?,

Thanks & Regards,

Amith Prasanna

 



*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    I am facing the same issue.

    Any luck found.

  • Community Member Profile Picture
    on at

    Hi Amith & Nauman,

    By any chance, have you found any solution to this issue?

    I am able to activate and log-in through the Retail Modern POS, however I am unable to log-in through Visual Studio (debugging) due to the above mentioned issue.

    Thanks in advance,

  • Oksana Kovaliova Profile Picture
    3,597 on at

    Hi Amith,

    Di you try to set "AllowAnonymousMetadata" value to "True" in Retail Server Web Config file?

    2016_2D00_05_2D00_23_5F00_21_2D00_28_2D00_18.png
    Regards,
    Oksana

  • Community Member Profile Picture
    on at

    Hi Oksana, all,

    Yes I have changed the key in the Retail Server web.config as per shown below:

    VSModernPOS_2D00_login.PNG

    As stated before, I am able to activate both from the Modern POS application itself and also from the Visual Studio during debugging. The only issue is that I am not able to log-into the Modern POS through the Visual Studio IDE.

    Scenario:

    Once the Modern POS is activated from Visual Studio (debugging mode), it redirects me to the log-in screen where the store id is shown as 'undefined'. Thus this means that the Retail Modern POS (through Visual Studio only) failed to retrieved the data from the Retail Server.

    VSModernPOS_2D00_login.PNG

    I have installed the Fiddler to analyse the requests and responses being sent from the Retail Modern POS to the Retail Server and I've noticed that the Retail Modern POS is sending a response to the Retail Server (GetDeviceConfiguration) and the response shows that the user does not have access.

    Please note that the Modern POS and Retail POS are both able to log-in and are installed on the same machine where I have the Visual Studio installed. 

    VSModernPOS_2D00_Fiddler.png

    Has anyone ever encountered something similar?

    I would highly appreciate your kind assistance.

    Thanks and Regards,

  • SergeyP Profile Picture
    2,928 on at

    Are you starting it (from Visual Studio) on a Local Machine or in Emulator? Please try in Emulator and see whether it will help or not.

  • Community Member Profile Picture
    on at

    Hi Sergey, all,

    Yes I'm starting it from Visual Studio due to debugging purposes. 

    The same results happens both in Local Machine and in Simulator Mode as shown below:

    VS_2D00_RunAsSimulator.PNG

    If you can notice, as already stated in my previous post, the store id field is shown as 'undefined'. Thus this means that the Retail Modern POS (through Visual Studio only) is failing to retrieve the data from the Retail Server.

    VS_2D00_RunAsSimulator.PNG

     

    Can anyone please shed some light on this issue?

    Thanks in advance,

    Kind Regards,

  • Community Member Profile Picture
    on at

    Hi all,

    Additionally to my previous thread, kindly note that during the activation step, although the activation is being done from the Retail Modern POS (i.e. in Visual Studio),  I am encountering the below error upon activation.

    Screenshot shows an error which was captured by Fiddler:

    2746.VS_2D00_POS_2D00_KeyNotFoundException.png

    Have you ever encountered this error before? 

    I would highly appreciate your response.

    Thanks in advance,

  • Community Member Profile Picture
    on at

    Hi Kevin,

    Would you please tell me, how you activate Modern POS from Visual Studio (debugging mode)?I appreciate you tell me the steps you follow to do this.

  • Suggested answer
    Community Member Profile Picture
    on at

    Did you try running the Retail Channel Database Utility as an administrator, and configuring the Retail Modern POS to use a specific store/channel database?

  • Community Member Profile Picture
    on at

    Did you find any solution as I am also facing same issue.

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans