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.NotSupportedException with DeriveParameters and ASP.net [DNET358] #363
Comments
Commented by: Olivier M (olivierm) There is also one String.Format(CultureInfo.CurrentUICulture in FbSchema.BuildCommand. |
Modified by: @cincuranetpriority: Major [ 3 ] => Minor [ 4 ] |
Modified by: @cincuranet |
Modified by: @cincuranet |
Modified by: @cincuranetstatus: Open [ 1 ] => In Progress [ 3 ] |
Commented by: @cincuranet Can you provide a stack trace. I can't replicate it. This piece works fine:
|
Modified by: @cincuranetstatus: In Progress [ 3 ] => Closed [ 6 ] resolution: Cannot Reproduce [ 5 ] |
Commented by: Olivier M (olivierm) Hi! Sorry for the late answer (i'm not using this address nowadays).
Now change the target framework for 3.5 => the exception System.NotSupportedException is raised. |
Commented by: @cincuranet Interesting. .NET 3.5 support in FirebirdClient has been dropped anyway, so I'll leave the ticket as is. |
Submitted by: Olivier M (olivierm)
When using DeriveParameters Method in http://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, http://Asp.net with globalization...="auto" sets CultureInfo.CurrentUICulture="fr" and CultureInfo.CurrentCulture="fr-FR".
The text was updated successfully, but these errors were encountered: