Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Could not load System.Memory, Version=4.0.1.1 from assembly: Microsoft.Data.SqlClient, Version=5.0.0.0 #2856

jssmotta started this conversation in General
Discussion options

Message:
Could not load file or assembly 'System.Memory, Version=4.0.1.1 ... Calling from assembly: Microsoft.Data.SqlClient, Version=5.0.0.0

Environment:
.NET 4.8.1 WebForms App; (It happens in 4.7.x too);
SQL Server 2022;
VS 2022 (and Preview too);

The throw error when:

var oCnn = new SqlConnection("Server=localhost;Database=AdventureWorks;Integrated Security=True;"); oCnn.Open();

What was done to try to fix:

GitHub Copilot does not answer correctly to fix it.

Redirects do not work.

Reinstalling System.Memory does not work.

Installing SNI does not work.

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

what version of M.D.SqlClient are you using? 5.2.2 or 5.1 or trying the v6.0-preview1?

You must be logged in to vote
2 replies
Comment options

The last stable!

Comment options

I mean 5.2.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /