Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

SBA - Authorization failed because the request did not specify a tenant context.

Posted on by 10

Hiya,

I’m getting below Authorization failed message when validating the service based architecture deployment by visiting https://***/gpservice/DefaultTenant/help

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<DexResponse>

<RequestError>

<CorrelationId>81c0a229b3db4b018d02a0655769baff</CorrelationId>

<HttpCode>403</HttpCode>

<ErrorCode>NoTenantContextSpecified</ErrorCode>

<Source>GPService</Source>

<Message>Authorization failed because the request did not specify a tenant context.</Message>

</RequestError>

</DexResponse>

However, I'm getting "EnvironmentInfo", "AppConfiguration" etc when visiting https://***/gpservice/Management/Diagnostics

Can someone shed light on this?

Thanks,
David

Categories:
  • davidsongau Profile Picture
    davidsongau 10 on at
    RE: SBA - Authorization failed because the request did not specify a tenant context.

    Hi Dereck,

    You are spot-on. I did reinstall and decide not to put SSL certificate on the mentioned services. Can you please suggest how to revert this SSL configuration. I tried reinstall today and it didn't work. The Diagnostics still shows https. 

        "Hosts": [
          {
            "HostId": "SPPGPTEST",
            "IsActive": true,
            "MaxConcurrentProcesses": 30,
            "ServiceControlAddress": "https://localhost:48655/Control"
          }
        ]

    The pre-reqs "HTTP Activation" has been installed from the get-go. 

    Thanks,
    David

  • Suggested answer
    RE: SBA - Authorization failed because the request did not specify a tenant context.

    Comparing the Diagnostic log, it still looks like the install of SBA didn't go through correctly.......

    A couple of things I'm seeing:

    --The 'ServiceControlAddress is showing https but then also localhost with a port of 48655. This can be indicative that we had added the SSL certificate to the Dexterity Service, which isn't required thus we recommend not putting the SSL cert on it, similar to the Session Central Service and Session Service for Web Client, and then in a repair or reinstall decided not to put the SSL cert on it, or vice versa, so it has a mix in its setup where it should just show ServerName:Port. Usually, the port number is 48655 or 48656, something in that area.

    --For your 'HostStatusMessages', I see no information at all, while mine shows the HostID, FullMachineName, GPVersion, Dexterity Service and Runtime file version, status, along with a HttpRequestAddress and HttpManagementAddress.

    This message of 'No hosts were available to process the request for tenant', is commonly seen when all pre-reqs haven't been installed on the server needed by SBA, specifically 'HTTP Activation' seems to be the big one we see.

    The issue with the SSL certificate/URL on the Dexterity Service Control can also cause this type of message.

    Please take a look at the above I mentioned.

    Thanks

  • davidsongau Profile Picture
    davidsongau 10 on at
    RE: SBA - Authorization failed because the request did not specify a tenant context.

    Hi Dereck,

    Thanks for your reply. 

    I followed the instructions on the suggested blog written by Karsten. I don't have 403 error anymore but a 500 error. Attached are the Diagnostics, Help page and Error Log. 

    I tried the approaches in the below post but there is no success. 

    community.dynamics.com/.../service-based-architecture---no-hosts-available

    Any suggestions?

    Thanks,

    David

    [View:/cfs-file/__key/communityserver-discussions-components-files/32/help.pdf][View:/cfs-file/__key/communityserver-discussions-components-files/32/Error-log.txt][View:/cfs-file/__key/communityserver-discussions-components-files/32/Diagnostics.json]

  • Suggested answer
    RE: SBA - Authorization failed because the request did not specify a tenant context.

    I'd verify you have all the required roles and features installed per this blog:

    community.dynamics.com/.../microsoft-dynamics-gp-service-based-architecture-sba-installation-troubleshooting

    The /Help URL for SBA doesn't require any permissions at all, so if you're not able to access it successfully, most likely there is either a pre-req missing from the server or the installation itself didn't go through successfully.

    This blog has a lot of troubleshooting information as well, if you haven't already looked at it.

    Thanks

  • davidsongau Profile Picture
    davidsongau 10 on at
    RE: SBA - Authorization failed because the request did not specify a tenant context.

    Hi Arthur,

    Thanks for your prompt reply. 

    I changed my expired self-signed certificate to a new one, but the issue persists. 

    Kind regards,
    David

  • ArthurA Profile Picture
    ArthurA 321 on at
    RE: SBA - Authorization failed because the request did not specify a tenant context.

    Hi David,

    I recently ran into the same issue in my dev environment and after checking everything I finally found that the self signed certificate I used had expired.

    Might be worth checking if everything else looks good.

    thanks

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans