Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Error in Powershell when configuring server-based authentication with Microsoft Dynamics 365 (on-premises) and SharePoint on-premises

Posted on by 516

I am trying to configure server-based authentication with Microsoft Dynamics 365 (on-premises) and SharePoint on-premises. I am following the below MS guide
technet.microsoft.com/.../dn949332.aspx

I am getting error when i try to run the following command in powershell
New-SPTrustedSecurityTokenIssuer –Name "crm" –IsTrustBroker:$false –MetadataEndpoint https://CrmServer/XrmServices/2015/metadataendpoint.svc/json?orgName=OrganizationName

CRM_2D00_SP-Sync-Error.JPG

*This post is locked for comments

  • AbiRami Profile Picture
    AbiRami 516 on at
    RE: Error in Powershell when configuring server-based authentication with Microsoft Dynamics 365 (on-premises) and SharePoint on-premises

    Hi Andreas,

    I have already tried those troubleshootings. But My problem not yet solved.

    Any other suggestions?

  • Suggested answer
    Andreas Cieslik Profile Picture
    Andreas Cieslik 9,265 on at
    RE: Error in Powershell when configuring server-based authentication with Microsoft Dynamics 365 (on-premises) and SharePoint on-premises

    technet.microsoft.com/.../dn946906.aspx

    You receive “The remote server returned an error: (400) Bad Request” and “Register-SPAppPrincipal: The requested service, 'wgwitsp/.../AppMng.svc&; could not be activated” error messages

    Applies to: SharePoint on-premises versions used with Microsoft Dynamics 365.

    The remote server returned an error: (400) Bad Request error message can occur after the certificate installation, such as when you run the CertificateReconfiguration.Ps1 script.

    The Register-SPAppPrincipal: The requested service, 'wgwitsp/.../AppMng.svc&; could not be activated error message can occur when you grant Microsoft Dynamics 365 permission to access SharePoint by running the Register-SPAppPrincipal command.

    To resolve both of these errors after they occur, restart the web server where the Microsoft Dynamics 365 web application is installed. More information: Start or Stop the Web Server (IIS 8)

    Here is a similar topic?

    community.dynamics.com/.../191481

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans