@@ -650,7 +650,7 @@ private static void AddImageHandlers(string siteName)
650650
651651 using ( ServerManager serverManager = new ServerManager ( ) )
652652 {
653- MessageBox . Show ( "AddImageHandlers called" ) ;
653+ // MessageBox.Show("AddImageHandlers called");
654654 var config = serverManager . GetWebConfiguration ( siteName ) ;
655655 var handlersSection = config . GetSection ( "system.webServer/handlers" ) ;
656656 var handlersCollection = handlersSection . GetCollection ( ) ;
@@ -682,19 +682,20 @@ private static void AddImageHandlers(string siteName)
682682 try
683683 {
684684 ConfigurationElement configurationElementpng = handlersCollection . CreateElement ( "add" ) ;
685- MessageBox . Show ( "pngHandlerMissing 1" ) ;
685+ // MessageBox.Show("pngHandlerMissing 1");
686686 configurationElementpng [ "name" ] = "get-image-png" ;
687- MessageBox . Show ( "pngHandlerMissing 2" ) ;
687+ // MessageBox.Show("pngHandlerMissing 2");
688688 configurationElementpng [ "path" ] = @"*.png" ;
689- MessageBox . Show ( "pngHandlerMissing 3" ) ;
689+ // MessageBox.Show("pngHandlerMissing 3");
690690 configurationElementpng [ "verb" ] = "GET" ;
691- MessageBox . Show ( "pngHandlerMissing 4" ) ;
691+ // MessageBox.Show("pngHandlerMissing 4");
692692 configurationElementpng [ "type" ] = @"System.Web.Handlers.TransferRequestHandler" ;
693- MessageBox . Show ( "pngHandlerMissing 5" ) ;
693+ // MessageBox.Show("pngHandlerMissing 5");
694694 configurationElementpng [ "preCondition" ] = "integratedMode,runtimeVersionv4.0" ;
695- MessageBox . Show ( "pngHandlerMissing 6" ) ;
695+ // MessageBox.Show("pngHandlerMissing 6");
696696 configurationElementpng [ "responseBufferLimit" ] = 0 ;
697- MessageBox . Show ( "pngHandlerMissing 7" ) ;
697+ //MessageBox.Show("pngHandlerMissing 7");
698+ MessageBox . Show ( "configurationElementpng is " + configurationElementpng . ToString ( ) ) ;
698699
699700 handlersCollection . Add ( configurationElementpng ) ;
700701 } catch ( Exception ex )
0 commit comments