[Mono-bugs] [Bug 82071][Maj] Changed - ConfigurationManager does not open the correct config file

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jul 11 15:16:17 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 13:46:12.000000000 -0400
+++ shadow/82071.tmp.31845	2007-07-11 15:16:17.000000000 -0400
@@ -1,12 +1,12 @@
 Bug#: 82071
 Product: Mono: Class Libraries
 Version: 1.2
 OS: other
 OS Details: Suse10
-Status: NEEDINFO   
+Status: REOPENED   
 Resolution: 
 Severity: Unknown
 Priority: Major
 Component: System
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: mickaelpic at yahoo.fr               
@@ -54,6 +54,26 @@
 
 Additional Information:
 none
 
 ------- Additional Comments From gert.driesen at pandora.be  2007-07-11 13:46 -------
 Please attach a minimal repro.
+
+------- Additional Comments From mickaelpic at yahoo.fr  2007-07-11 15:16 -------
+As I said, I have an exe running as service, and a dll.
+I create an instance of a class in the dll.
+That instance try to access to the exe config file.
+But it fails.
+
+Also, I tried to display the following from the dll (in the same 
+function I call for ConfigurationManager:
+Assembly.GetEntryAssembly().CodeBase
+Assembly.GetCallingAssembly().CodeBase
+Assembly.GetExecutingAssembly().codeBase
+
+Here are respectively the results I got:
+file:///myfolder/myservice.exe
+file:///myfolder/myserviceDll.dll
+file:///myfolder/myserviceDll.dll
+
+Could it be that ConfigurationManager is using CallingAssembly 
+instead of EntryAssembly?


More information about the mono-bugs mailing list