We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Are both httpHandlers and handlers elements required in Web.config?

Documentation for manually adding the MVC classic diagram control to an application advises that a reference to MvcResourceHandler should be added to both the <httpHandlers> element and the <handlers> element in web.config.  See the topic entitled "Adding Codes to the Web.config File" at http://help.syncfusion.com/asp.net%20mvc/diagram.

My (albeit limited) understanding is that the <httpHandlers> element is not required, and is in fact deprecated, if IIS is running in integrated mode.  That's my conclusion after reading this Microsoft article: http://www.iis.net/configreference/system.webserver/validation.

The article's topic is actually the <validation> element.  It states that <validation validateIntegratedModeConfiguration="false">, which is also recommended by the diagram documentation referenced above, is required if "you do not migrate your configuration but you want IIS to remain in Integrated mode (which is not advised) ..."  It goes on to note that "IIS will no longer provide warnings for unsupported configurations when validateIntegratedModeConfiguration is false."

I would like to benefit from IIS configuration validation.  Assuming I confirm that IIS is running in integrated mode, can I remove the <httpHandlers> section, and keep only the <handlers> section?  The referenc to MvcResourceHandler is the only child in these sections of my web.config.  If I can remove the <httpHandlers> section, can I also assume I no longer require <validation validateIntegratedModeConfiguration="false"> in <system.webServer>?

Thanks for your help.


1 Reply

SG Shyam G Syncfusion Team May 7, 2014 07:30 AM UTC

Hi Jeff,

Thanks for using Syncfusion products.

Query

Response

For IIS machine

We suggest you to include MvcResourceHandler and ImgRequest  in <handlers> section. Please refer the code snippet below.

<handlers> 

     <add verb="GET,HEAD" name="MvcResourceHandler" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=12.1500.0.43, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

      <add verb="GET,HEAD" name="ImgRequest" path="ImgRequest.axd" type="Syncfusion.Mvc.Diagram.ImageHandler, Syncfusion.Diagram.Mvc, Version=12.1500.0.43, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

 </handlers>

For non-IIS machine

We suggest you to include MvcResourceHandler and ImgRequest in <httpHandlers> section. Please refer the code snippet below.

 <httpHandlers>

     <add verb="GET,HEAD" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=12.1500.0.43, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" />

      <add verb="GET,HEAD" path="ImgRequest.axd" type="Syncfusion.Mvc.Diagram.ImageHandler, Syncfusion.Diagram.Mvc, Version=12.1500.0.43, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" />

 </httpHandlers>

  

Please let me know if any concerns.

Regards,

Shyam G


Loader.
Up arrow icon