SSMS 20 can't show conflict viewer

Nebojsa Ilic 35 Reputation points
2024-04-05T12:35:44.52+00:00

Hi!

Clicking on View conflicts in Object Explorer open Connect to Server dialog form instead of Conflict Viewer. If I fill in form to connect to the same server, it creates very strange error:

A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.) (Framework Microsoft SqlClient Data Provider)

Regards,

Nebojsa

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,894 questions
{count} vote

Accepted answer
  1. LucyChenMSFT-4874 1,355 Reputation points
    2024-04-08T05:25:40.07+00:00

    Hi @Nebojsa Ilic,

    Thanks for your information. Please check out the article, there are breaking changes in EF Core 7.0. SqlClient connection strings use Encrypt=False by default. This means that:

    • The server must be configured with a valid ceritificate.
    • The client must trust this certificate.

    A SqlException will be thrown if these conditions are not met:

    A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)

    There are three ways to proceed:

    1. Install a valid certificate on the server. Hope this article can help you well.
    2. If the server has a certificate, but it is not trusted by the client, then TrustServerCertificate = True to allow bypassing the normal trust mechanism.
    3. Explicitly add Encrypt=False to the connection string.

    Best regards,

    Lucy Chen


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    https://docs.microsoft.com/en-us/answers/support/email-notifications


3 additional answers

Sort by: Most helpful
  1. Erland Sommarskog 102.3K Reputation points
    2024-04-05T21:01:18.9166667+00:00

    SSMS 20 changed the default for encryption, so that encryption is mandatory. In the best of worlds, this means that SQL Server should use a "real" certificate for encryption of the traffic, and this certificate should be installed in the Trusted Certificate store on the client. But in less sensitive environments you can let it suffice with checking "Trust server certificate". In the new connection dialog in SSMS, this option is one the first page.

    Or, at least, the normal dialog you get when you open a query window or Object Explorer. If you don't get this window when you open the Conflict Viewer, this seems like an oversight. (I'm not sure, but Conflict Viewer relates to Replication right? I don't have any replication set up, so that I can try it myself.) But in that case, you should find Trust Server Certificate on the second page.

    Can you show a screenshot of the dialog you get?

    0 comments No comments

  2. LucyChenMSFT-4874 1,355 Reputation points
    2024-04-09T06:36:15.8633333+00:00

    Hi @Nebojsa Ilic,

    Thanks for your information. This error message '0x2746' indicates that there is a network error, an existing connection was forcibly closed by the remote host.

    1. From the error ('0x2746'), it looks like something local on the server attempting to connect address being hit by a firewall. Examine any firewall or security software settings that might be blocking or interrupting the TCP connection. Ensure that the necessary ports are open and that SQL Server is allowed to communicate through the firewall.
    2. In addition, note that you are using Windows Server 2012 R2, it looks like changing the cipher suite on Windows Server 2012 R2 solves the issue, please check this article. However, I find this article, this issue has been fixed in the latest Windows 10 and Windows Server 2016 updates.

    The error '0x2746' can be a challenging issue to resolve, but with a systematic approach to troubleshooting, it can be managed effectively. Please feel free to share your issue here.

    Regards,

    Lucy Chen


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    https://docs.microsoft.com/en-us/answers/support/email-notifications


  3. Erin Stellato 486 Reputation points Microsoft Employee
    2024-05-10T19:15:23.4166667+00:00

    Hey all-

    It looks like this is the same issue logged here: https://feedback.azure.com/d365community/idea/55c6a655-3aec-ee11-a73d-000d3adc65a4

    Can you confirm? Please tag me in any reply so I can track this properly. Thank you,

    Erin