No http handler was found for request type ‘GET’ in SharePoint

In this post, we will learn how to solve No http handler was found for request type ‘GET’ error that you may face when you use Microsoft Chart control in your .Net Solution.


No http handler was found for request type ‘GET’

I have tried to use Asp.Net Microsoft Chart control in my SharePoint Solution, it’s added and the solution deployed successfully, but when I tried to add the Chart visual webpart to a SharePoint page in my site, I got the following server error.

No http handler was found for request type ‘get’

no http handler was found for request type 'get'

Root Cause

This problem usually occurs because the web.config is not configured properly to use Microsoft Chart control.

How to configure Microsoft Chart control in web.config for SharePoint Solution?

To configure the web.config for Chart control, follow the simple steps below:

  • Open the web.config file of the SharePoint web application that located at C:\inetpub\wwwroot\wss\VirtualDirectories\"Port of web application"
Locate Web.config
  • Within <httpHandlers> tag, add the following:
<httpHandlers>
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
</httpHandlers>
httpHandlers for Microsoft Chart control in web.config
  • Within <controls> tag, add the following:
<controls>
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</controls>
Controls tag for Microsoft Chart control in web.config
  • Within <handlers> tag, add the following:
<handlers>
<remove name="ChartImageHandler" />
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</handlers>
Handlers tag for Microsoft Chart control in web.config
  • Within <appSettings> tag, add the following:
<appSettings>
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />
</appSettings>
appsettings tag for Microsoft Chart control in web.config

Note:  you should have a folder called “TempImageFiles” in C:\ Drive.

  • Also, it should be shared as Read & Write permission for everyone .
share a folder
Manage folder security
  • Try to deploy the SharePoint solution again, and browse your site.
  • The Chart control should be working properly now.
configure Microsoft Chart control in web.config for SharePoint Solution

Be aware that, the above steps should be applied on all SharePoint servers cross the farm.
Also, This configuration is not only for SharePoint Solution, you can also use it for Asp.Net Solution.


Conclusion

In conclusion, we have learned how to configure Microsoft Chart Control for SharePoint solution to avoid No http handler was found for request type ‘GET’ error.

Applied To
  • ASP.Net.
  • SharePoint.
See Also

4 thoughts on “No http handler was found for request type ‘GET’ in SharePoint”

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top