Feedback
Windows SQL Server apps crash when published with trimming
- Status
- Fixed
- Fixed in
- v26.6.6
- Source discussion
- https://forum.objo.dev/d/438-sql-server-connection-from-windows-exit-with-code-1/5
- Last updated
- 2026-06-25
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Windows apps that use SQLServerDatabase can exit with code 1 when opening a SQL Server connection. The failure occurs inside Microsoft.Data.SqlClient's Windows SNI provider during SqlConnection.Open(), and Objo currently reports it as a fatal VM exception instead of a catchable database error.