User Tools

Site Tools


determine_path_to_web.config_at_runtime

Determine path to web.config at runtime

In C#, you can determine which web.config is being used with this:

String pathToConfig = System.Web.HttpContext.Current.Server.MapPath("/Web.config");
determine_path_to_web.config_at_runtime.txt · Last modified: 2024/08/11 18:06 by jimc