[Mono-bugs] [Bug 38755][Wis] New - System.Configuration.AppSettingsReader returns substring of value

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 26 Feb 2003 10:09:57 -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=38755

--- shadow/38755	Wed Feb 26 10:09:57 2003
+++ shadow/38755.tmp.14422	Wed Feb 26 10:09:57 2003
@@ -0,0 +1,57 @@
+Bug#: 38755
+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...