Posted on: 12/17/2014 10:33:06 AM | Views : 541

My path is : "D:\Excercise\Test\web.config"
i am giving like D:\\Excercise\Test\\ but it is throwing the below error
The relative virtual path is not allowed here
string configPath =" D:\\Excercise\Test\\"; // Get the Web application configuration object. Configuration config = WebConfigurationManager.OpenWebConfiguration(configPath); // Get the section related object. GlobalizationSection configSection = (GlobalizationSection)config.GetSection("system.web/globalization")

Plz hep

Go to the complete details ...