Determine path to web.config at runtime
.NET
In C#, you can determine which web.config is being used with this:
= System.Web.HttpContext.Current.Server.MapPath("/Web.config"); String pathToConfig
In C#, you can determine which web.config is being used with this: