System.Data.SqlClient Not Supported #1637
-
Using the latest SEQ install version, 2022.1, I have written a very simple Seq App that writes to a SQL Server database. I have tried several different .NET versions (4.x Framework, Standard 2.1, and .NET 6.0). No matter what I do, after installing the Seq App in to Seq, the app errors with: System.PlatformNotSupportedException: System.Data.SqlClient is not supported on this platform. I used https://github.com/johnmiller86/seq-apps-sqlserverexporter/tree/master/Seq.Apps.SQLServerExporter as an example. Should I downgrade to 2021.4? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 15 replies
-
Hi Bill, thanks for your message. The problem is due to System.Data.SqlClient requiring platform-specific native libraries; i.e. it needs different binaries deployed for Windows, Linux, and so-on. Seq's app system assumes for the most part that everything is portable, though you can target If The Microsoft.Data.SqlClient NUPKG (just a zip file) has I didn't spot a build script in the repo you linked; there's a Build.ps1 and appveyor.yaml in https://github.com/datalust/seq-app-htmlemail which you might be able to adapt, if you need an example of how the build/pack process should work. Let me know if this helps! Nick |
Beta Was this translation helpful? Give feedback.
-
Include the SNI assembly in the package file |
Beta Was this translation helpful? Give feedback.
Include the SNI assembly in the package file