[Mono-bugs] [Bug 80934][Wis] New - ConfigurationFile should be relative to the ApplicationBase
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Feb 22 09:19:37 EST 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 jamie.cansdale at testdriven.net.
http://bugzilla.ximian.com/show_bug.cgi?id=80934
--- shadow/80934 2007-02-22 09:19:37.000000000 -0500
+++ shadow/80934.tmp.12007 2007-02-22 09:19:37.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 80934
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: jamie.cansdale at testdriven.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ConfigurationFile should be relative to the ApplicationBase
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. AppDomainSetup setup = new AppDomainSetup();
+2. setup.ApplicationBase = "some_dir";
+3. setup.ConfigurationFile = "test.config";
+4. AppDomain.CreateDomain("ConfigurationFileDomain", null, setup);
+
+Actual Results:
+The .config file is read from the current directory.
+
+Expected Results:
+The .config file is read from "some_dir/test.config".
+
+How often does this happen?
+Always.
+
+Additional Information:
+This is how it behaves in .NET although I don't think it's explicitly
+documented. In .NET if ConfigurationFile is specified before setting
+ApplicationBase then an exception is thrown. No exception is thrown under
+the current Mono implementation. This can easily trip up applications
+developed under .NET.
+
+I'm going to submit patches for the unit tests and a fix.
More information about the mono-bugs
mailing list