Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
After 2026 Patch 3 update, Entra ID login to DB throw error
#1
After installing latest patch 3 version, upon launch login connection to Azure SQL database with Entra ID throws this error:
Code:
Rocket Remote Desktop 2026 Failed to authenticate the user  in Active Directory (Authentication=ActiveDirectoryInteractive). Error code 0xwindow_handle_required Failed to acquire access token for ActiveDirectoryInteractive: A window handle must be configured. See https://aka.ms/msal-net-wam#parent-window-handles   at CloudAdminDataAccess.SqlDataAccessor.get_GlobalSettingsBaseItem()   at CloudAdminCommon.Access.DataAccessor.get_GlobalSettingsBaseItem()   at CloudAdminCommon.Access.ConfigDataAccessor.get_EntraIdSettings()   at CloudAdminCommon.User.UserLogin.Login(Control parent, EnvironmentProtectionTypes protection, String username, String password, Boolean integrated, EnvironmentProtectionTypes logonMethod, String domainname, DsDomainTrust selectedDomain, List`1 domainList, Boolean changePassword)   at CloudAdminUI.Dialogs.LoginDialog.simpleButtonLogin_Click(Object sender, EventArgs e)


This is a Microsoft.Data.SqlClient + MSAL/WAM issue. 

Your data layer is opening a SQL connection whose connection string uses Authentication=Active Directory Interactive. On that first DB call (get_GlobalSettingsBaseItem), Microsoft.Data.SqlClient hands the interactive auth off to MSAL. In recent versions (Microsoft.Data.SqlClient 5.0+, and .NET on Windows) MSAL routes interactive login through the WAM broker, which needs a parent window handle (HWND) so it can anchor the account picker. Your code never supplies one, so MSAL throws window_handle_required.

This almost certainly appeared after a NuGet upgrade of Microsoft.Data.SqlClient (or a runtime bump) — older versions fell back to an embedded/system browser and didn't require the handle.
Reply


Messages In This Thread
After 2026 Patch 3 update, Entra ID login to DB throw error - by Karolis - 23-07-2026, 08:01 AM



Users browsing this thread: 2 Guest(s)