web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
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"

(0) ShareShare
ReportReport
Posted on 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.

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

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

    Thanks.

  • Lee1178 Profile Picture
    10 on at

    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

  • Marco Mels Profile Picture
    Microsoft Employee on at

    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
    10 on at

    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

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    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
    10 on at

    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

  • Verified answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    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.

  • richonfire Profile Picture
    5 on at

    I have the 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,960 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,299 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,131 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans