[Mono-bugs] [Bug 683058] ConfigurationManager doesnt work for Process executed apps

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 29 11:26:08 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=683058

https://bugzilla.novell.com/show_bug.cgi?id=683058#c9


--- Comment #9 from scott fluto <srfcanada at hotmail.com> 2011-03-29 15:26:07 UTC ---
Actually I found the problem , in the procFail , im passing "TestProgram.exe "
with a space at the end, removing the space makes it work. I debugged it , and
with the space , AppDomain.CurrentDomain.SetupInformation.ConfigurationFile
returns "TestProgram.exe .config" .

IN ConfigurationManager.cs, line 99 used to be:
exePath = calling_assembly.Location;
but now its:
AppDomain.CurrentDomain.SetupInformation.ConfigurationFile
this is the one that has the problem with the space in the path. I debuged into
the AppdomainSetup.cs but it calls AppDomainSetup.SetupInformation which calls
GetSetup() but thats an internall that I cant debug into but it seems to be
concatinating the path and the config with the space in it. 

As a fix I can remove the space but this should be fixed since it could trip
people up in other places.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list