C# .NET ACAD 2025 Microsoft.Data.Sqlclient

Huge shot in the dark here.
I am struggling to include Microsoft.Data.Sqlcleint in a custom DLL for ACAD 2025. The code works ok with a Windows Desktop Forms dev. But … in ACAD 2025 … throws exception …Error …The type of initializer … TSDPARSER threw an exception. on trying to connect to the SQL Server.
Any suggestions?
Thx for reading, thx for your patience,