Get the file path of current application's config file

Posted by dummy on Stack Overflow See other posts from Stack Overflow or by dummy
Published on 2010-06-02T11:03:43Z Indexed on 2010/06/02 15:23 UTC
Read the original article Hit count: 410

Filed under:
|
|
|

The reason I asked this question is that I wanted to create a helper class for Remoting instantiation, and wanted to pass the appropriate app.exe.config (or web.config) file path to the RemotingConfiguration.Configure method, depending on the caller.

Is there a way I could get the name of the config file for both Win and Web apps without checking if the application is Web or WinForms?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET