Print Page | Close Window

EXE.Config confusion

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1508
Printed Date: 21-Sep-2025 at 10:11pm


Topic: EXE.Config confusion
Posted By: sebma
Subject: EXE.Config confusion
Date Posted: 04-Oct-2009 at 11:23pm
Hi,
 
The issue of App.Config probing is explained in developer guide, but still I am not sure if this has been asked before.
 
Instead of probing *.exe.config, is there a reason why the executing assembly's .exe.config is not taken as the highest priority?
 
For example, I have a.exe and b.exe, and a.exe.config and b.exe.config, all in one deployment folder. There is often a confusion which exe.config the exe will load.
 
Thanks.
Sebastian



Replies:
Posted By: kimj
Date Posted: 05-Oct-2009 at 1:19pm
Sebastian, you're right that what we're doing is wrong and confusing.  I've opened a request to get this fixed.
 
Right now we will look at all *.exe.config files in the executable folder, and I'm not sure if the order of the file list is determinate.  Once a "valid" (i.e., without errors) ideablade.configuration section is found and loaded, all further probing stops.


Posted By: sebma
Date Posted: 05-Oct-2009 at 9:07pm
Thanks much!



Print Page | Close Window