[Mono-bugs] [Bug 38756][Wis] New - System.Configuration.AppSettingsReader returns substring of value
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Wed, 26 Feb 2003 10:11:33 -0500 (EST)
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 charlouis.mono@wanadoo.be.
http://bugzilla.ximian.com/show_bug.cgi?id=38756
--- shadow/38756 Wed Feb 26 10:11:33 2003
+++ shadow/38756.tmp.14510 Wed Feb 26 10:11:33 2003
@@ -0,0 +1,57 @@
+Bug#: 38756
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: charlouis.mono@wanadoo.be
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: System.Configuration.AppSettingsReader returns substring of value
+
+Description of Problem:
+
+The AppSettingsReader returns a substring of the value, instead of the
+value itself...
+
+
+Steps to reproduce the problem:
+####
+so, if I have this in my App.config:
+
+<add key="MyModule.FactoryType" value="MyModule.BasicFactory, AssemblyName"/>
+
+####
+And this is in my source code:
+factName = (string)aReader.GetValue("MyModule.FactoryType",typeof(string));
+
+
+####
+Actual Results:
+
+Console.WriteLine(factname) returns this: ' yModule.BasicFactory, Assemblynam '
+
+####
+Expected Results:
+
+ 'MyModule.BasicFactory, AssemblyName'
+
+
+How often does this happen?
+
+always
+
+Additional Information:
+
+Workaround: <add key="MyModule.FactoryType" value=" MyModule.BasicFactory,
+AssemblyName "/>
+
+Inserting spaces allow this to run correctly with mono, but generate a bug
+in Windows...