-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Microsoft.Data.SqlClient is not supported on this platform #191
Comments
Does that happen on windows? |
Yes It does. |
In <PackageReference Include="System.Collections" Version="4.3.0" />
<PackageReference Include="System.IO" Version="4.3.0" />
<PackageReference Include="System.IO.FileSystem" Version="4.3.0" /> Build then run in const baseNetAppPath = path.join(__dirname, '/src/'+ namespace +'/bin/Debug/net'+ net + version); with const baseNetAppPath = path.join(__dirname, '/src/'+ namespace +'/bin/Release/net'+ net + version + '/win-x64'); |
Ok now I have another error: Note |
I added ;TrustServerCertificate=true to the connection string and some little fixes on the sql command and I solved the error I was encountering. |
For different platform builds you need to specify correct |
Many thanks ! |
Quick update: this issue does not appear to be present when using the latest release of Edge.js and System.Data.SqlClient instead of Microsoft.Data.SqlClient in your repo. If you are upgrading to latest version of Edge.js note the change in EdgeJs.dll location as it it now .net version agnostic to simplify any future changes. |
I modified the sample edge-js-quick-start to add Microsoft.Data.SqlClient (and I tried System.Data.SqlClient as well) trying to establish a SqlConnection, but I get the exception:
My repository is edge-js-quick-start-sqlclient.
I've explored various avenues to resolve the issue, including modifying edge-js as well. However, I'm still unable to find a solution.
Given the complexity of the problem and its impact on my work, I'm open to offering compensation for assistance in resolving this issue. I believe your expertise and insights could greatly contribute to finding a solution.
If you're available and willing to help, I'd greatly appreciate your assistance. Please let me know if you're interested, and we can discuss the details, including the compensation amount, further.
Thank you for considering my request.
Best regards,
Gaetano Lazzo
The text was updated successfully, but these errors were encountered: