exePath is invalid exception in ConfigurationManager.OpenExeConfiguration
<p>I have a windows service which is installed to C:\Windows\System32. It has a usual .config file, where some app settings are stored. I have another app that writes some values to this config. When i run this app it throws an exception at this line</p>

<p><code>
var config = ConfigurationManager.OpenExeConfiguration(serviceExePath);
</code></p>

<p>The exception says: <em>An error occurred loading a configuration file: The parameter 'exePath' is invalid. Parameter name: exePath</em></p>

<p>When I put my windows service to another folder everything is ok! Is it due to some access violation rules or smth like that? Is there any way to use System32 folder for my service and open its config?</p>

<p>OS: Windows 7 x64</p>
