Skip to content

Microsoft.SqlServer.SqlManagementObjects incompatibility with v7.0.0 of Microsoft.Data.SqlClient #4160

Closed

Description

@AdaskoTheBeAsT

As Microsoft.SqlServer.SqlManagementObjects does not expose any issue registering address could you please pass to team responsible for Microsoft.SqlServer.SqlManagementObjects that last version of it is not compatible with latest Microsoft.Data.SqlClient

Activity

  1. SimonCropp commented on Apr 8, 2026

    @SimonCropp
    Contributor

    i suspect this is already fixed by #4067

    just waiting for the release

  2. paulmedynski commented on Apr 10, 2026

    @paulmedynski
    Contributor

    @AdaskoTheBeAsT - Can you explain specifically how SMO isn't compatible with MDS 7.0.0? @SimonCropp is likely correct, but I would like to be certain before attributing your issue to that PR.

  3. self-assigned this
    on Apr 10, 2026
  4. moved this from To triage to Waiting for customer in SqlClient Boardon Apr 10, 2026
  5. AdaskoTheBeAsT commented on Apr 12, 2026

    @AdaskoTheBeAsT
    Author

    @SimonCropp @paulmedynski hi guys sorry for laconic bug report - more details:

    branch showing error https://github.com/AdaskoTheBeAsT/AdaskoTheBeAsT.Identity.Dapper/tree/bug/incompatibility-smo-mssqlclient-7

    all integration tests for SqlServer showing

    Image

    System.TypeLoadException
    Could not load type 'Microsoft.Data.SqlClient.SqlAuthenticationMethod' from assembly 'Microsoft.Data.SqlClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5'.
    at Microsoft.SqlServer.Management.Common.ConnectionSettings.InitFromSqlConnection(SqlConnection sc)
    at Microsoft.SqlServer.Management.Common.ConnectionSettings.InitFromSqlConnection(SqlConnection sc)
    at Microsoft.SqlServer.Management.Common.ConnectionManager..ctor(SqlConnection sqlConnectionObject, IRenewableToken accessToken)
    at Microsoft.SqlServer.Management.Common.ServerConnection..ctor(SqlConnection sqlConnection, IRenewableToken accessToken)
    at Microsoft.SqlServer.Management.Common.ServerConnection..ctor(SqlConnection sqlConnection)
    at AdaskoTheBeAsT.Identity.Dapper.SqlServer.IntegrationTest.TestCollections.DatabaseWithGuidIdFixture.CreateDbAsync(SqlConnection connection) in D:\GitHub\AdaskoTheBeAsT.Identity.Dapper\test\integ\AdaskoTheBeAsT.Identity.Dapper.SqlServer.IntegrationTest\TestCollections\DatabaseWithGuidIdFixture.cs:line 99
    at AdaskoTheBeAsT.Identity.Dapper.SqlServer.IntegrationTest.TestCollections.DatabaseWithGuidIdFixture.InitializeAsync() in D:\GitHub\AdaskoTheBeAsT.Identity.Dapper\test\integ\AdaskoTheBeAsT.Identity.Dapper.SqlServer.IntegrationTest\TestCollections\DatabaseWithGuidIdFixture.cs:line 66
    at AdaskoTheBeAsT.Identity.Dapper.SqlServer.IntegrationTest.TestCollections.DatabaseWithGuidIdFixture.InitializeAsync() in D:\GitHub\AdaskoTheBeAsT.Identity.Dapper\test\integ\AdaskoTheBeAsT.Identity.Dapper.SqlServer.IntegrationTest\TestCollections\DatabaseWithGuidIdFixture.cs:line 72
    at Reqnroll.Bindings.AsyncMethodHelper.ConvertTaskOfT(Task task, Boolean getValue)
    at Reqnroll.Bindings.BindingDelegateInvoker.InvokeDelegateAsync(Delegate bindingDelegate, Object[] invokeArgs, ExecutionContextHolder executionContext)
    at Reqnroll.Bindings.BindingInvoker.InvokeBindingAsync(IBinding binding, IContextManager contextManager, Object[] arguments, ITestTracer testTracer, DurationHolder durationHolder)
    at Reqnroll.Infrastructure.TestExecutionEngine.InvokeHookAsync(IAsyncBindingInvoker invoker, IHookBinding hookBinding, HookType hookType)
    at Reqnroll.Infrastructure.TestExecutionEngine.InvokeHookAsync(IAsyncBindingInvoker invoker, IHookBinding hookBinding, HookType hookType)
    at Reqnroll.Infrastructure.TestExecutionEngine.FireEventsAsync(HookType hookType)
    at Reqnroll.Infrastructure.TestExecutionEngine.FireEventsAsync(HookType hookType)
    at Reqnroll.Infrastructure.TestExecutionEngine.OnTestRunStartAsync()
    at Reqnroll.TestRunner.OnTestRunStartAsync()
    at Reqnroll.TestRunnerManager.FireTestRunStartAsync()
    at Reqnroll.TestRunnerManager.OnTestRunStartAsync(Assembly testAssembly, IContainerBuilder containerBuilder)
    at AdaskoTheBeAsT_Identity_Dapper_SqlServer_IntegrationTest_XUnitAssemblyFixture.InitializeAsync() in D:\GitHub\AdaskoTheBeAsT.Identity.Dapper\test\integ\AdaskoTheBeAsT.Identity.Dapper.SqlServer.IntegrationTest\obj\Release\net10.0\xUnit.AssemblyHooks.AdaskoTheBeAsT_Identity_Dapper_SqlServer_IntegrationTest.cs:line 15
    at Reqnroll.xUnit.ReqnrollPlugin.XunitTestAssemblyRunnerWithAssemblyFixture.b__2_0()
    at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) in /_/src/xunit.core/Sdk/ExceptionAggregator.cs:line 90

    Edited: ok I see - type forwarding will solve my problem - so... I keep my fingers crossed for the release ;)

  6. paulmedynski commented on Apr 13, 2026

    @paulmedynski
    Contributor

    @AdaskoTheBeAsT - Yes, that looks to be the case! I'll associate this issue with #4067 and the backport.

  7. added this to the 7.0.1 milestone on Apr 13, 2026
  8. moved this from Waiting for customer to In progress in SqlClient Boardon Apr 13, 2026
  9. paulmedynski commented on Apr 13, 2026

    @paulmedynski
    Contributor

    Fixed by #4117.

  10. moved this from In progress to Done in SqlClient Boardon Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Regression 💥Issues that are regressions introduced from earlier PRs.

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions