Skip to main content
Post a question

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Dynamics 365 Business Central Microsoft Graph code unknown "Could not load file or assembly Microsoft.IdentityModel.S2S"

Like (0) ShareShare
ReportReport
Posted on 1 Dec 2020 06:43:40 by 10

Hello,

Anyone might know what's happening here, I'm currently using the Microsoft Graph to fetch data from Business Central, Everything is fine upon Authentication (OAuth2) but when I tried to fetch some data using Postman I'm having this error.


{
    "error": {
        "code""Unknown",
        "message""Could not load file or assembly 'Microsoft.IdentityModel.S2S, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.  CorrelationId:  68ce3dc6-cf1d-4164-b556-5b348ab1e5c3.",
        "innerError": {
            "date""2020-12-01T06:25:35",
            "request-id""e93bc531-ea19-4dcc-95ef-598b2153807d",
            "client-request-id""e93bc531-ea19-4dcc-95ef-598b2153807d"
        }
    }
}

see also screenshot for reference
pastedimage1606804914349v1.png


Thanks in advance.

  • richonfire Profile Picture
    richonfire 5 on 08 Dec 2020 at 21:13:17
    RE: Dynamics 365 Business Central Microsoft Graph code unknown "Could not load file or assembly Microsoft.IdentityModel.S2S"

    I have the same issue

  • Verified answer
    Marco Mels Profile Picture
    Marco Mels on 02 Dec 2020 at 14:08:28
    RE: Dynamics 365 Business Central Microsoft Graph code unknown "Could not load file or assembly Microsoft.IdentityModel.S2S"

    Hello,

    Your partner or CSP can do that for you on your behalf. Or via the admin center:

    businesscentral.dynamics.com/.../admin

    or

    businesscentral.dynamics.com/.../admin

    Thanks.

  • Lee1178 Profile Picture
    Lee1178 10 on 02 Dec 2020 at 13:21:19
    RE: Dynamics 365 Business Central Microsoft Graph code unknown "Could not load file or assembly Microsoft.IdentityModel.S2S"

    Hello Marco,

    Thanks for the help up to now, one last question please, how and where  do I raise a support call? is it through business central or directly to Microsoft (support.microsoft.com/.../contactus)

    hehe

    Thank you again,

    Lee

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on 02 Dec 2020 at 12:28:19
    RE: Dynamics 365 Business Central Microsoft Graph code unknown "Could not load file or assembly Microsoft.IdentityModel.S2S"

    Hello,

    Aha, then the questions about the file version do not make sense. Please do raise a support call with us so we can track it at our side.

    Thanks a lot!

  • Lee1178 Profile Picture
    Lee1178 10 on 02 Dec 2020 at 08:18:51
    RE: Dynamics 365 Business Central Microsoft Graph code unknown "Could not load file or assembly Microsoft.IdentityModel.S2S"

    Hello,

    ah yes its happening from SaaS, I've created an App from the Azure Portal then added a scope `

    Financials.ReadWrite.All` for Business Central. it was working before but then suddenly I'm having that error since yesterday.

    Thanks Again,

    Lee

  • Marco Mels Profile Picture
    Marco Mels on 02 Dec 2020 at 07:49:59
    RE: Dynamics 365 Business Central Microsoft Graph code unknown "Could not load file or assembly Microsoft.IdentityModel.S2S"

    Hello,

    Thank you for coming back. Is this happening on SaaS. Otherwise these files are in the service folder of BC.

    Thanks.

  • Lee1178 Profile Picture
    Lee1178 10 on 02 Dec 2020 at 01:23:11
    RE: Dynamics 365 Business Central Microsoft Graph code unknown "Could not load file or assembly Microsoft.IdentityModel.S2S"

    Hello,

    thank you for the response, I'm not really sure as I'm only using the Postman to make the request so the error is coming from the Microsoft API itself. or maybe I can check the version somewhere on the Business Central Account?

    Thank you again

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on 01 Dec 2020 at 12:47:13
    RE: Dynamics 365 Business Central Microsoft Graph code unknown "Could not load file or assembly Microsoft.IdentityModel.S2S"

    Hello,

    What is the file version of Microsoft.IdentityModel.S2S.dll and Microsoft.IdentityModel.S2S.Tokens.dll.

    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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,257 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,028 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete