Fixed custom HTTP handlers removal in IIS 7.0 provider when updating web site settings
This commit is contained in:
parent
eb64f13221
commit
84f0cc724c
2 changed files with 11 additions and 11 deletions
|
@ -118,16 +118,16 @@ namespace WebsitePanel.Providers.Web.Handlers
|
|||
if (String.IsNullOrEmpty(processor))
|
||||
return;
|
||||
// This section helps to overcome "legacy" issues
|
||||
using (var srvman = GetServerManager())
|
||||
{
|
||||
var config = srvman.GetWebConfiguration(virtualDir.FullQualifiedPath);
|
||||
//
|
||||
var handlersSection = config.GetSection(Constants.HandlersSection);
|
||||
// Do a complete section cleanup
|
||||
handlersSection.RevertToParent();
|
||||
//
|
||||
srvman.CommitChanges();
|
||||
}
|
||||
//using (var srvman = GetServerManager())
|
||||
//{
|
||||
// var config = srvman.GetWebConfiguration(virtualDir.FullQualifiedPath);
|
||||
// //
|
||||
// var handlersSection = config.GetSection(Constants.HandlersSection);
|
||||
// // Do a complete section cleanup
|
||||
// handlersSection.RevertToParent();
|
||||
// //
|
||||
// srvman.CommitChanges();
|
||||
//}
|
||||
//
|
||||
using (var srvman = GetServerManager())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue