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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

116266 May 6,2014 01:15 PM May 7,2014 03:30 AM ASP.NET MVC (Classic) 1
loading
Tags: Diagram
Jeff
Asked On May 6, 2014 01:15 PM

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.


Shyam G [Syncfusion]
Replied On May 7, 2014 03:30 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;