I’m trying to convert our custom activitys to the new .Net6 standard but have some problems to get the activity to communicate with a MS Sqlserver?
I use Microsoft Visual Studio 2022 Pro to create and build the NuGet packages, and there are no build og version issues in VS but in UiPath Studio I get the error belov:
Unable to load DLL ‘Microsoft.Data.SqlClient.SNI.dll’: Det angivne modul blev ikke fundet. (Exception from HRESULT: 0x8007007E)
I got it to work by installing the .nuget package “Microsoft.Data.SqlClient” in my project in VS2022. Then I got the file “Microsoft.Data.SqlClient.SNI.dll” from my repo under “\bin\Debug\net6.0-windows\runtimes\win-x64\native” (you want to finde the version you need ex. win-x86 ect.) and copied it to “C:\Users<username>\AppData\Local\Programs\UiPath\Studio”.