You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not load type 'SqlGuidCaster' from assembly 'System.Data.SqlClient, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
#507
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.
I've upgraded Insight.Database to version 6.3.11 and I've noticed this version is referencing a vulnerable version of System.Data.SqlClient (4.5.0), which is causing the below error upon upgrading to .NET 8.
Could not load type 'SqlGuidCaster' from assembly 'System.Data.SqlClient, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
Could you please upgrade to the latest version or better yet replace it with Microsoft.Data.SqlClient thanks
Steps to reproduce
1- Create a .NET 8 project
2- Install the latest version of Insight.Database
3- Run AppDomain.CurrentDomain.GetAssemblies()
.SelectMany(assembly => assembly.GetTypes())
.Where(type => !type.IsAbstract && typeof(T).IsAssignableFrom(type))
.Select(type => type.Assembly)
.Distinct()
Expected behavior
Dotnet version: [dotnet8]
Database: [SQL Server]
Library version: [6.3.11]
The text was updated successfully, but these errors were encountered:
m0hamdan
changed the title
Vulnerable package referenced System.Data.SqlClient 4.5.0
Could not load type 'SqlGuidCaster' from assembly 'System.Data.SqlClient, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
Mar 28, 2024
Describe the bug
I've upgraded Insight.Database to version 6.3.11 and I've noticed this version is referencing a vulnerable version of System.Data.SqlClient (4.5.0), which is causing the below error upon upgrading to .NET 8.
Could not load type 'SqlGuidCaster' from assembly 'System.Data.SqlClient, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
Could you please upgrade to the latest version or better yet replace it with Microsoft.Data.SqlClient thanks
Steps to reproduce
1- Create a .NET 8 project
2- Install the latest version of Insight.Database
3- Run AppDomain.CurrentDomain.GetAssemblies()
.SelectMany(assembly => assembly.GetTypes())
.Where(type => !type.IsAbstract && typeof(T).IsAssignableFrom(type))
.Select(type => type.Assembly)
.Distinct()
Expected behavior
The text was updated successfully, but these errors were encountered: