System.NotSupportedException with DeriveParameters and ASP.net
--------------------------------------------------------------
Key: DNET-358
URL: http://tracker.firebirdsql.org/browse/DNET-358
Project: .NET Data provider
Issue Type: Bug
Components: ADO.NET Provider
Affects Versions: 2.6, 2.5.2
Environment: asp.net 3.5
Firebird 2.5
Firebird.net 2.5.2
Reporter: Olivier M
Assignee: Jiri Cincura
When using DeriveParameters Method in ASP.net with the following line in the web.config :
"<globalization uiCulture="auto" culture="auto" />"
a System.NotSupportedException is raised :
"Culture 'xx' is a neutral culture and cannot be used for formatting and parsing".
I think this is due to using "CultureInfo.CurrentUICulture" instead of "CultureInfo.CurrentCulture" when formatting strings in DeriveParameters.
For example, Asp.net with globalization...="auto" sets CultureInfo.CurrentUICulture="fr" and CultureInfo.CurrentCulture="fr-FR".
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|