简体   繁体   English

启动与SQL Server的连接时出现异常的SqlException

[英]Unusual SqlException when initiating connection to SQL Server

I have a number of customers who can connect to our database without problems. 我有许多客户可以毫无问题地连接到我们的数据库。 One of our customers had to install our program fresh after he received a new computer and he's not able to successfully connect. 我们的一位客户在收到一台新电脑并且无法成功连接后,必须重新安装我们的程序。

The connection process involves a stored procedure which checks a username, password and some other details and returns true if that user is allowed to use the database. 连接过程涉及一个存储过程,它检查用户名,密码和其他一些细节,如果允许该用户使用该数据库则返回true。 The call to the stored procedure is where it goes wrong. 对存储过程的调用是出错的地方。

System.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. System.Data.SqlClient.SqlException(0x80131904):已成功与服务器建立连接,但在登录过程中发生错误。 (provider: SSL Provider, error: 0 - Das Format der empfangenen Nachricht war unerwartet oder fehlerhaft.) (提供者:SSL提供者,错误:0 - Das Format der empfangenen Nachricht war unerwartet oder fehlerhaft。)

That last bit is in German - it translates to 最后一点是德语 - 它转化为

The format of the message received was unexpected or incorrect. 收到的消息格式是意外或不正确的。

I've snipped the rest since it's long. 因为很长时间,我已经剪掉了其余的东西。 Here's the rest as an image. 这是其余的图像。 Sorry - I don't have it as text. 对不起 - 我没有文字。

I've already tried 我已经试过了

  • having the user restart his machine 让用户重新启动他的机器
  • restarting the SQL server 重新启动SQL服务器
  • checking that TCP/IP, named pipes and shared memory are enabled on SQL server 检查SQL Server上是否启用了TCP / IP,命名管道和共享内存

SQL Server version info: SQL Server版本信息:

Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64) Jun 28 2012 08:36:30 Copyright (c) Microsoft Corporation Express Edition with Advanced Services (64-bit) on Windows NT 6.2 (Build 9200: ) Microsoft SQL Server 2008 R2(SP2) - 10.50.4000.0(X64)2012年6月28日08:36:30版权所有(c)Microsoft Corporation在Windows NT 6.2上具有高级服务(64位)的Express Edition(Build 9200:)

Everyone else seems to have no problems connecting as usual, but it's just this one customer. 其他人似乎没有像往常一样连接的问题,但它只是这一个客户。

Now, one thing that's odd is it states the provider is 'SSL Provider'. 现在,有一件事很奇怪,它表明提供商是'SSL提供商'。 As far as I know, I'm not using SSL. 据我所知,我没有使用SSL。 Could the client think it's SSL when it's not, and that's causing unexpected data? 客户是否可以认为它不是SSL,这会导致意外数据?

I'm running out of things to try - any ideas how I should proceed in troubleshooting? 我已经没有什么可以尝试了 - 任何想法我应该如何进行故障排除?

这是.Net Framework 4.5.1中的已知错误.NET Framework 4.5.1中断了与SQL Server的ADO.NET连接您可以通过安装.Net Framework 4.5.2来解决此问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试连接到SQL Server数据库时出现“ SqlException未处理”错误 - 'SqlException was unhandled' error when trying to connect to SQL Server database 数据库未启动但 SQL Server 已准备好连接时的 SqlException - SqlException when the database is not started but SQL Server is ready for connections 使用SQL Server的应用程序中的SqlException - SqlException in app using SQL Server 将数据存储到SQL Server中的SqlException - SqlException on storing data into SQL Server SqlException:服务器不存在或连接被拒绝 - SqlException: Server does not exist or connection refused 将linq2sql应用程序从SQL Server 2005升级到2008时出现SqlException - SqlException when upgrading linq2sql app from SQL Server 2005 to 2008 将OLEDB转换为SQL Server之后的.updateall中的SqlException - SqlException in .updateall after convert OLEDB to SQL Server 尝试在SQL Server 2008 R2上调用某个列时,在C#上未处理SqlException - SqlException unhandled on C# when trying to call a certain column on SQL Server 2008 R2 连接字符串问题:System.Data.SqlClient.SqlException (0x80131904) - 无法连接到 SQL Server Management Studio - Connection String Issue: System.Data.SqlClient.SqlException (0x80131904) - Unable to connect to SQL Server Management Studio SQL 服务器连接客户端到服务器时远程连接出错 - Error in remote connection in SQL Server when connecting the client to the server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM