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.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.InvalidOperationException: Internal connection fatal error. Error state: 15, Token : 143 #919
Comments
@chaybcr thanks for bringing this up to our attention. issue #672 is looking like a similar issue with the very same stack. Can you provide us more detail such as what version of Microsoft.Data.SqlClient you are using and are you using Net Core or .NETFramework application plus can you please provide us a sample repro? |
we are using EntityFramework 6.0.0 add name="AppDBConnection" providerName="System.Data.SqlClient" connectionString="Data Source=ServerName;Initial Catalog=DBname;User Id=userID; Password=password;Column Encryption Setting=enabled" we are using the similar Queries for all the methods...but this error occurs only when fetching the data from the tables which were encrypted using SQL Server Always Encrypted method with Windows certificate store- Current user . the certificate was imported in the Application server which uses its private key to decrypt the data when this issue occurred we try to close all the Active connections in SQl server and even restarted the database server....when we logged into the Application server with Service Account, we are able to get the response from those API calls which fetches Encrypted data. |
Could you wrap up a repro app that consistently reproduces this error? |
We are also seeing a somewhat similar error with a slightly different message. Environment
Stack trace
|
We are also seeing a somewhat similar error with a slightly different message. it will happend sometime but not always i have multi-threaded misuse of connection Environment
Stack trace
Code
SQL Server 2016 |
Just in case check your *.csproj for InvariantGlobalization attribute. |
we have been receiving this error frequently in application when an API call happens between Application server and database server to fetch data.
while troubleshooting the issue restarted both Application and DB servers (using my account to logged into server) and there is no luck. Later we found that when logged into server using Service Account which is used as Application Pool Identity for the site resolved the issue.
Note: this issue is not happening for all API calls. only for the calls which involves fetching Encrypted data using SQL Always Encrypted method.
So, Alternative days or whenever we noticed the issue we are logging into Application server with Service account to resolve this issue.
we are using windows server 2016, IIS10.
can anyone help us why this peculiar behavior is happening?
Thanking you in Advance!!!
The text was updated successfully, but these errors were encountered: