Sunday, May 20, 2007

Location of Configuration File

If you're unsure where your .NET application is looking for it's config file, check the AppDomainSetup.ConfigurationFile property.

This property gets or sets the location and configuration filename for the running app domain.

AppDomain.CurrentDomain.SetupInformation.ConfigurationFile

Pretty unnecessary when you're writing sensible software, but when your dealing with "Notes + Javascript + ActiveX + .NET" lunacy you might just need this.

Thanks to Stonie for the pre-written post ;)

No comments: