# Authorization-code/callback error :Method not found: IdentityModel.Client.HttpClientUserInfoExtensions.GetUserInfoAsync

**URL:** <https://devforum.okta.com/t/authorization-code-callback-error-method-not-found-identitymodel-client-httpclientuserinfoextensions-getuserinfoasync/10076>\
**Category:** Questions\
**Created:** [July 9, 2020, 6:04pm UTC](https://devforum.okta.com/t/authorization-code-callback-error-method-not-found-identitymodel-client-httpclientuserinfoextensions-getuserinfoasync/10076 "2020-07-09T18:04:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![naveen.gade](https://avatars.discourse-cdn.com/v4/letter/n/4491bb/32.png) [@naveen.gade](https://devforum.okta.com/u/naveen.gade)\
**Post date:** [July 9, 2020, 6:04pm UTC](https://devforum.okta.com/t/authorization-code-callback-error-method-not-found-identitymodel-client-httpclientuserinfoextensions-getuserinfoasync/10076/1 "2020-07-09T18:04:25Z")

</div>

I am integrating my .Net MVC application with OKTA using Open ID connect.  
Locally every thing works perfectly, but after deploying code to server I am getting below exception after authenticating and redirecting to url  
[www.mywesite.com/authorization-code/callback](http://www.mywesite.com/authorization-code/callback)

## _Method not found: ‘System.Threading.Tasks.Task`1\<IdentityModel.Client.UserInfoResponse\> IdentityModel.Client.HttpClientUserInfoExtensions.GetUserInfoAsync(System.Net.Http.HttpMessageInvoker, IdentityModel.Client.UserInfoRequest, System.Threading.CancellationToken)’._

I am struck since last two days. Please do needful .

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 24, 2024, 8:18pm UTC](https://devforum.okta.com/t/authorization-code-callback-error-method-not-found-identitymodel-client-httpclientuserinfoextensions-getuserinfoasync/10076/2 "2024-01-24T20:18:30Z")

</div>

Closed on January 24, 2024, 8:18pm UTC


