Hi Friends,

I want to edit and update web.config file in webservice from my windows application. This is a asp.net web service .

In my windows application i add that web service as a web reference. from win application i call one web service method. that method try to update the web.config. when i doing that, i got the error like access to the path c:\inetbub\wwwroot\mywebservice\web.config is denied.

Please reply me the solution for this problem.

Thanks in advance.

Regards,
Vasanth.

This is exactly what you have to expect! You cannot modify web.config from the web application/web site/web service that is configured from this web.config. Just remember that fact as if it is an axiom. Later on you'll figure out why...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.