What i need to do is to totally replace the Web.config file of the current application with another Web.config. By doing so i intend that part of the .NET framework, like web services, read the data from the Web.config file (directly on disk) and not the
cached Web.config.
There is no other option, because I am ising virtual directories and thus the web.config resides in an assembly. That,s why I need to change the web.config, as when i load a dll that has an endpoint defined on it's web.config then it can't access the service
because that endpoint isn't defined in the host web.config.
yushir
0 Points
2 Posts
Replace web.config on the fly
Apr 13, 2012 12:44 AM|LINK
This issue is related to this thread on TechNet: http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/22cb4da6-dd13-43ce-a499-07de65d6f556/?prof=required.
What i need to do is to totally replace the Web.config file of the current application with another Web.config. By doing so i intend that part of the .NET framework, like web services, read the data from the Web.config file (directly on disk) and not the cached Web.config.
Any help would be greatly appreciated.
Thanks.
mvc Plugin web.config
SonicMan
Participant
1472 Points
228 Posts
Re: Replace web.config on the fly
Apr 16, 2012 09:59 AM|LINK
Hi
For Web.config it inhert from machine.config.
And it can be controled by IIS.
So when you deploy your website in another machine, use IIS is better.
And for web.config,I suggest you don't replace it. It's unnecessary.
yushir
0 Points
2 Posts
Re: Replace web.config on the fly
Apr 16, 2012 10:59 AM|LINK