[Mono-bugs] [Bug 82071][Maj] New - ConfigurationManager does not open the correct config file
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jul 11 12:12:37 EDT 2007
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 mickaelpic at yahoo.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=82071
--- shadow/82071 2007-07-11 12:12:37.000000000 -0400
+++ shadow/82071.tmp.23920 2007-07-11 12:12:37.000000000 -0400
@@ -0,0 +1,56 @@
+Bug#: 82071
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: Suse10
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: mickaelpic at yahoo.fr
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ConfigurationManager does not open the correct config file
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+I have a service myservice.exe that I start with mono-service2
+The service is made of myservice.exe & myserviceDll.dll
+There is a myService.exe.config
+myservice.exe create an instance myinstance of a class that is inside
+myserviceDll.dll
+myinstance try to access to the config file using
+ConfigurationManager.AppSettings.Get("configToGet");
+But it returns nothing.
+After looking for a moment I found
+ConfigurationManager.OpenExeConfiguration so the value of
+ConfigurationManager.OpenExeConfiguration
+(ConfigurationUserLevel.None).FilePath
+And I discover that ConfigurationManager is trying to open
+myserviceDll.dll.config
+
+.Net open correctly myservice.exe.config
+So mono should do the same as far as I know.
+
+Steps to reproduce the problem:
+1. Create a service with a dll, set a config file for the service
+2. Try to access the config file from the dll
+3.
+
+Actual Results:
+Trying to get the config values from an inexisting myserviceDll.dll.config
+file.
+
+Expected Results:
+To get the config values from the Exe
+
+How often does this happen?
+Everyt time
+
+Additional Information:
+none
More information about the mono-bugs
mailing list