Access to the path 'c:\inetpub\wwwroot\FinalUploadProgress\web.config' is denied.
-
Hi.. Friends. I'm getting this error while changig in 'httpHandler' section in web.config by following code.. Configuration objConfig = WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath); HttpHandlersSection sec = (HttpHandlersSection) objConfig.GetSection("system.web/httpHandlers"); sec.Handlers.RemoveAt(0); HttpModulesSection sec2 = (HttpModulesSection)objConfig.GetSection("system.web/httpModules"); sec2.Modules.RemoveAt(0); objConfig.Save(ConfigurationSaveMode.Full); When, I m executing this code, I m getting this types of error message, Access to the path 'c:\inetpub\wwwroot\FinalUploadProgress\web.config' is denied. Please help me ASAP Thanks in Advance.. Regards, Abhi
-
Hi.. Friends. I'm getting this error while changig in 'httpHandler' section in web.config by following code.. Configuration objConfig = WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath); HttpHandlersSection sec = (HttpHandlersSection) objConfig.GetSection("system.web/httpHandlers"); sec.Handlers.RemoveAt(0); HttpModulesSection sec2 = (HttpModulesSection)objConfig.GetSection("system.web/httpModules"); sec2.Modules.RemoveAt(0); objConfig.Save(ConfigurationSaveMode.Full); When, I m executing this code, I m getting this types of error message, Access to the path 'c:\inetpub\wwwroot\FinalUploadProgress\web.config' is denied. Please help me ASAP Thanks in Advance.. Regards, Abhi