0

How can I read Web.config file that located on my local computer. I try to use

var settings=WebConfigurationManager.OpenWebConfiguration(@"C:\myFolder...\Web.config").AppSettings;

but I have exception: "The relative virtual path 'C:/myFolder/.../Web.config' is not allowed here."

user1590561
  • 583
  • 2
  • 6
  • 17

0 Answers0