You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am having this exception when Try it out under swagger of GET account/balance:
System.InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor' while attempting to activate 'Transaction.WebApi.Services.IdentityService'.
Solution, add this, as it not registered by default anymore:
services.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>();
The text was updated successfully, but these errors were encountered:
Am having this exception when Try it out under swagger of GET account/balance:
System.InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor' while attempting to activate 'Transaction.WebApi.Services.IdentityService'.
Solution, add this, as it not registered by default anymore:
services.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>();
The text was updated successfully, but these errors were encountered: