on-internet
← Community

Microsoft.Data.SqlClient 7.0.0 throwing error on new serverconnection in .NET Framework 4.8

Stack Overflow ·

We have a Visual Studio solution, written to run on .NET Framework 4.8 and mostly in VB.NET. Part of this is a mechanism to run SQL scripts stored in .sql files. This has worked fine for years, through various upgrades of the nuget packages for Microsoft.Data.SqlClient. Today I saw there is a new nuget package, so I upgraded it from version 6.1.4 to 7.0.0. Our connection strings tend to look like this: Server=[server name here].database.windows.net; Database=[database name here]; Application Name=[something]; uid=[a SQL username];pwd=[a SQL password]; TrustServerCertificate=True; And the code

Comments

Sign in or sign up to comment and upvote.

No comments yet.