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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

oauth2 request returns no such host is known

(0) ShareShare
ReportReport
Posted on by 75

We have the Azure App Service set up to host a portal with an ASP.Net Core backend.
The Backend then connects to Business Central using OData V4 to Store and Retrieve data as required.
The portal has been running for over a year with no issue.

The problem we are facing:
We were using Basic Authentication until Saturday when our Business central Updated and Basic Authentication was no longer supported.
We updated our backend to make use of Microsoft.Identity.Client Library to get new OData Access Tokens to connect to Business Central.
We experienced issues with the request to get new tokens returning an error of "No such host is known", We figured it was an issue with the code and found another way to handle Access tokens.

Shortly after we noticed that all outgoing requests are throwing the same exceptions.
Both "HttpClient" and "HttpWebRequest" fail with the same error.

When Running on local development IIS we have no issues.

No changes were made to the App Service Configuration we had originally.
We don't have a VNet setup, My understanding is that this is only used to make requests to other resources on the Vnet and not to external services.
We also did not have any issues at all before without this setup.

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

    Hello,

    If you are not getting further responses from the community, please consider to raise a ticket to Microsoft via your partner or CSP.

    Thank you.

  • Gert Lynge - www.dabbler.dk Profile Picture
    80 on at

    It is not answering your question, but according to my knowledge, Basic Authentication is not going away before BC 2022 wave 1 (to be released in April 2022).

    So why is Basic Authentication no longer supported in your version? (it is supposed to be, unless you are running some kind of NextMajor version?).

    https://www.kauffmann.nl/2021/01/07/deprecation-of-basic-auth-for-saas-has-been-postponed-to-2022/

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/deprecated-features-platform#accesskeys

    (i know you will have to implement OAuth2 soon anyway - but you still have a few months to get it working)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,965 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,125 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 961 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans