# System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'

**URL:** <https://community.auth0.com/t/system-invalidoperationexception-idx20803-unable-to-obtain-configuration-from-system-string/72299>\
**Category:** Get Help\
**Tags:** jwt\
**Created:** [October 29, 2021, 6:45am UTC](https://community.auth0.com/t/system-invalidoperationexception-idx20803-unable-to-obtain-configuration-from-system-string/72299 "2021-10-29T06:45:41Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![lix123](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lix123/32/32703_2.png) [@lix123](https://community.auth0.com/u/lix123)\
**Post date:** [October 31, 2021, 1:21am UTC](https://community.auth0.com/t/system-invalidoperationexception-idx20803-unable-to-obtain-configuration-from-system-string/72299/11 "2021-10-31T01:21:05Z")

</div>

Found the problem. The Authority property was set incorrectly.

```
        services.AddAuthentication(options =>
        {
            options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
            options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
        }).AddJwtBearer(options =>
        {
            options.Authority = "Auth0 domain"; // this was in correct
            options.Audience = ....
        });

```

Copied code from two different samples and mixed up the key for the authority.

Bad error message.

---

_[View the full topic](https://community.auth0.com/t/system-invalidoperationexception-idx20803-unable-to-obtain-configuration-from-system-string/72299)._
