[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.


--- 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   
+Priority: Major
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mickaelpic at yahoo.fr               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+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 
+myinstance try to access to the config file using 
+But it returns nothing.
+After looking for a moment I found 
+ConfigurationManager.OpenExeConfiguration so the value of 
+And I discover that ConfigurationManager is trying to open 
+.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
+Actual Results:
+Trying to get the config values from an inexisting myserviceDll.dll.config 
+Expected Results:
+To get the config values from the Exe
+How often does this happen? 
+Everyt time
+Additional Information:

More information about the mono-bugs mailing list