I'm trying to connect to the Connected Service "Authentication with Azure Active Directory" but Visual Studio throws an error when I click it.
Connected Services
The Connected Services component 'Azure AD Authentication' failed: (HRESULT:0x80004002)
Specified cast is not valid.
The error seems to be application specific as I can access it from another application on my system, just not this one. I can't find anything talking about this error anywhere. Does anyone have any idea what could cause this?
The application is a .NET core 2.2 razor pages app.