All - this issue is resolved in SSMS 20.2, which was released July 9, 2024.
SSMS 20 can't show conflict viewer
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
-
Erin Stellato 661 Reputation points Microsoft Employee
2024-07-10T15:38:13.7666667+00:00
5 additional answers
Sort by: Most helpful
-
LucyChenMSFT-4874 5,060 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:
- Install a valid certificate on the server. Hope this article can help you well.
- If the server has a certificate, but it is not trusted by the client, then TrustServerCertificate = True to allow bypassing the normal trust mechanism.
- 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
-
LucyChenMSFT-4874 5,060 Reputation points
2024-07-11T01:51:44.5733333+00:00 Hi @Nebojsa Ilic ,
Good news!
Please refer to the latest general availability SSMS 20.2, we can get the information in bug fixed:
Best regards,
Lucy Chen
-
Erland Sommarskog 112.8K 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?
-
LucyChenMSFT-4874 5,060 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.
- 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.
- 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