[Mono-bugs] [Bug 76773][Min] New - Retreiving current CultureInfo
fails in WebService, but works in console application
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Nov 20 15:15:02 EST 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bernoloewer at gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=76773
--- shadow/76773 2005-11-20 15:15:02.000000000 -0500
+++ shadow/76773.tmp.14154 2005-11-20 15:15:02.000000000 -0500
@@ -0,0 +1,50 @@
+Bug#: 76773
+Product: Mono: Tools
+Version: 1.0
+OS:
+OS Details: Debian Sarge x86, Kernel 2.6.8, mono 1.1.9.1-2bpo1 + xsp 1.0.5-0pre2 (from http://people.debian.org/~formorer/mono)
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: XSP
+AssignedTo: gonzalo at ximian.com
+ReportedBy: bernoloewer at gmx.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Retreiving current CultureInfo fails in WebService, but works in console application
+
+Description of Problem:
+The following line of C# code gives an empty string ("") when executed in a
+WebService on XSP, but gives the correct value in a command line application:
+
+string cultureName = System.Globalization.CultureInfo.CurrentCulture.Name;
+
+Steps to reproduce the problem:
+
+1. Implement a Web Service which returns the result of
+CultureInfo.CurrentCulture.Name in one of its WebMethods, for example:
+
+[WebMethod]
+public string GetCultureName()
+{
+ return System.Globalization.CultureInfo.CurrentCulture.Name;
+}
+
+2. Call this WebMethod
+
+Actual Results:
+empty string
+
+Expected Results:
+name of the current Culture of the system runnign XSP, for example "en-US",
+in the web service
+
+How often does this happen?
+every time the WebMethod is called...
+
+Additional Information:
+With MS .Net Framework and IIS (on Windows XP Pro SP1) both is fine and
+returns the correct result.
More information about the mono-bugs
mailing list