Skip to content

Commit 519149d

Browse files
committed
Trying with the clear command.
1 parent 098c435 commit 519149d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eFormAPI/Installation/CustomActions/CustomAction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,8 @@ private static void AddImageHandlers(string siteName)
716716
}
717717
//MessageBox.Show("configurationElementpng is " + obj.ToString());
718718

719-
handlersCollection.Remove(toRemoveCe);
719+
handlersCollection.Clear();
720+
//handlersCollection.Remove(toRemoveCe);
720721
handlersCollection.Add(configurationElementpng);
721722
} catch (Exception ex)
722723
{
@@ -735,7 +736,6 @@ private static void AddImageHandlers(string siteName)
735736
configurationElementjpg["type"] = @"System.Web.Handlers.TransferRequestHandler";
736737
configurationElementjpg["preCondition"] = "integratedMode,runtimeVersionv4.0";
737738
configurationElementjpg["responseBufferLimit"] = 0;
738-
739739
handlersCollection.Add(configurationElementjpg);
740740
}
741741
catch (Exception ex)

0 commit comments

Comments
 (0)