Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Config filoe question
Message
 
To
16/09/2005 13:27:04
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 1.1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01050398
Message ID:
01050417
Views:
10
To determine the path and name of the application configuration file at run time, you can use the ConfigurationFile property of the current application domain object (this works for both Windows Forms and ASP .NET applications).
For example, in C#:


// Get the current application domain object
System.AppDomain domain = System.Threading.Thread.GetDomain();

// Get the path and name of the application configuration file
string config = domain.SetupInformation.ConfigurationFile;
Previous
Reply
Map
View

Click here to load this message in the networking platform