-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Cannot resolve scoped service when Debug via Visual Studio on Windows - Works using Linux Container #128
Comments
What is WebAppPubSubHub? would it require IdWeb as a singleton? |
The SDK Azure.Messaging.WebPubSub is for the Azure Web PubSub service. This is workign when running via a Linux docker container, just not when debugging on Windows using Visual Studio so I don't think changing ID Web to a singleton will fix this. It depends on how things are being registered under the hood. It's possible to be an issue in Microsoft.Identity.Web.DownstreamApi - from memory IDownstreamApi had been moved around and changed in the past so I don't recall why I logged it to this repo. |
Which version of Microsoft Identity Abstractions for dotnet are you using?
Microsoft Identity Abstractions version 5.3.0 via Microsoft.Identity.Web.DownstreamApi version 2.18.1
Is this a new or an existing app?
New app
Repro
Debug an ASP.NET 8.0 application using multiple IDP's and Azure Web PubSub.
Expected behavior
Error is not observed when debugging on Windows via Visual Studio.
Actual behavior
The call to
app.MapWebPubSubHub<webpubsub>("/eventhandler/{*path}");
triggers System.InvalidOperationException: 'Cannot resolve scoped service 'Microsoft.Identity.Abstractions.IDownstreamApi' from root provider.' only when debugging via Visual Studio (latest version - 17.9.6) on Windows. When run in a Linux Container the app runs fine.Possible solution
N/A
The text was updated successfully, but these errors were encountered: