# Net8.0 issue - ## InvalidOperationException: Cannot redirect to the authorization endpoint, the configuration may be missing or invalid

**URL:** <https://devforum.okta.com/t/net8-0-issue-invalidoperationexception-cannot-redirect-to-the-authorization-endpoint-the-configuration-may-be-missing-or-invalid/31848>\
**Category:** OAuth/OIDC\
**Tags:** dotnet\
**Created:** [January 31, 2025, 3:55pm UTC](https://devforum.okta.com/t/net8-0-issue-invalidoperationexception-cannot-redirect-to-the-authorization-endpoint-the-configuration-may-be-missing-or-invalid/31848 "2025-01-31T15:55:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Outlaw99](https://avatars.discourse-cdn.com/v4/letter/o/dc4da7/32.png) [@Outlaw99](https://devforum.okta.com/u/Outlaw99)\
**Post date:** [January 31, 2025, 3:55pm UTC](https://devforum.okta.com/t/net8-0-issue-invalidoperationexception-cannot-redirect-to-the-authorization-endpoint-the-configuration-may-be-missing-or-invalid/31848/1 "2025-01-31T15:55:12Z")

</div>

I had this all working before I upgraded everything to Net8.0 and now I am stumped. After I upgraded my webapp I also updated everything in Nuget and am on Okta.AspNetCore 4.6.2 and 9.0.4 of the Okta.SDK. Nothing changed… and I am getting this error like it cannot see my appsettings.json file.

## InvalidOperationException: Cannot redirect to the authorization endpoint, the configuration may be missing or invalid.

I am not getting any errors or anything for dependencies missing - not sure where I need to maybe look next.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [March 2, 2025, 3:55pm UTC](https://devforum.okta.com/t/net8-0-issue-invalidoperationexception-cannot-redirect-to-the-authorization-endpoint-the-configuration-may-be-missing-or-invalid/31848/2 "2025-03-02T15:55:54Z")

</div>

Closed on March 2, 2025, 3:55pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![edwin.rajz](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@edwin.rajz](https://devforum.okta.com/u/edwin.rajz)\
**Post date:** [March 25, 2025, 1:11pm UTC](https://devforum.okta.com/t/net8-0-issue-invalidoperationexception-cannot-redirect-to-the-authorization-endpoint-the-configuration-may-be-missing-or-invalid/31848/3 "2025-03-25T13:11:46Z")

</div>

Please review Okta Asp.NetCore samples. The sample contains several sample applications that show you how to integrate various Okta use-cases into your [ASP.NET](http://ASP.NET) Core applications.  
[GitHub - okta/samples-aspnetcore: samples-aspnetcore](https://github.com/okta/samples-aspnetcore)
