How to OpenWebConfiguration with physical path?

Posted by aron on Stack Overflow See other posts from Stack Overflow or by aron
Published on 2010-03-03T04:21:34Z Indexed on 2010/06/01 6:33 UTC
Read the original article Hit count: 485

hi, I have a win form that creates a site in IIS7. One function needs to open the web.config file and make a few updates. (connection string, smtp, impersonation)

However I do not have the virtual path, just the physical path.

Is there any way I can still use WebConfigurationManager?

I need to use it's ability to find section and read/write.

System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration

Thanks!!

© Stack Overflow or respective owner

Related posts about c#3.0

Related posts about web-config