# Secure Your ASP.NET Core App with OAuth 2.0

**URL:** <https://devforum.okta.com/t/secure-your-asp-net-core-app-with-oauth-2-0/17093>\
**Category:** Developer Blog Comments\
**Created:** [July 15, 2019, 5:16pm UTC](https://devforum.okta.com/t/secure-your-asp-net-core-app-with-oauth-2-0/17093 "2019-07-15T17:16:04Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [May 11, 2020, 7:55pm UTC](https://devforum.okta.com/t/secure-your-asp-net-core-app-with-oauth-2-0/17093/5 "2020-05-11T19:55:04Z")

</div>

**Eric Brown**

when setting up the 2nd app (.net core) i get the following error.

There isn’t that much to change to set it up, anyone know what i did wrong?

An unhandled exception occurred while processing the request.  
SocketException: No such host is known  
System.Net.Http.ConnectHelper.ConnectAsync(string host, int port, CancellationToken cancellationToken)

HttpRequestException: No such host is known  
System.Net.Http.ConnectHelper.ConnectAsync(string host, int port, CancellationToken cancellationToken)

IOException: IDX20804: Unable to retrieve document from: ‘[PII is hidden]’.  
Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(string address, CancellationToken cancel)

InvalidOperationException: IDX20803: Unable to obtain configuration from: ‘[PII is hidden]’.  
Microsoft.IdentityModel.Protocols.ConfigurationManager\<t\>.GetConfigurationAsync(CancellationToken cancel)

---

_[View the full topic](https://devforum.okta.com/t/secure-your-asp-net-core-app-with-oauth-2-0/17093)._
