-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
Description
After migrating from System.Data.OleDB 6.0.0 to 7.0.0 or greater error messages are broken on Windows with language set to Spanish Locale (Argentina). Instead it shows error codes.
Reproduction Steps
For example:
System.Data.OleDb.OleDbConnection cn = new System.Data.OleDb.OleDbConnection();
try
{
cn.ConnectionString = "Provider=SQLOLEDB.1;Data Source=AnyWrongDS;Integrated Security=SSPI;Initial Catalog=master;Current Language=Spanish;";
cn.Open();
}
catch (Exception ex)
{
Console.Write(ex.Message);
}
Expected behavior
Exception on version 7.0.0 or greater should throw: [DBNETLIB][ConnectionOpen (Connect()).]No existe el servidor SQL Server o se ha denegado el acceso al mismo
Actual behavior
Running the code on Windows with language set to English throws: [DBNETLIB][ConnectionOpen(Connect()).] SQL server does not exist or access denied
Running on Spanish language Locale (Argentina) throws: Unspecified error: E_FAIL(0x80004005)
Running on Spanish (Argentina) using System.Data.OleDB 6.0.0 throws: [DBNETLIB][ConnectionOpen (Connect()).]No existe el servidor SQL Server o se ha denegado el acceso al mismo
Regression?
No response
Known Workarounds
No response
Configuration
.Net 7.0.0 or greater
Windows language: Spanish
Other information
No response