You can't, because the file is locked. You can do it outside the web, but,
as mentioned by Eliyahu, it will restart your application, booting off all
live sessions.
In .NET 2.0, you can make additional "config" files that are linked from the
web.config and do it that way. Or, you can create your own configuration
"handler" and do whatever you wish.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"3471Jack32 9" <Ja***@hotmail. comwrote in message
news:6I******** **********@wagn er.videotron.ne t...
This is a stupid question but I risk it.
Just in case something is possible...
How can I modify the web.config settings from ASP.NET programming?
<system.net>
<mailSettings >
<smtp from="em***@add ress.ca">
<network host="link.geog io.com" password="passw ord"
userName="usern ame" />
</smtp>
</mailSettings>
</system.net>