views:

2848

answers:

6

This error comes up when I submit a page to load up a .net chart control. I have the http handler in my web.config below. FOr whateve reason it doesnt seem to work.

<httpHandlers>
  <remove verb="*" path="*.asmx"/>
  <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
  <add verb="GET" path="FtbWebResource.axd" type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" />
  <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>

Any ideas why this error would come up? Im stumped on this one.

A: 

Hmm...maybe <remove verb="*" path="*.asmx"/> makes your server no longer respond to POST requests? Try commenting that out, and see if it's overriding the add lines.

lacqui
Tried your suggestion but no luck.
chopps
ok..switching to Classic .NET AppPool in IIS clears this up. I dont't know why it doesnt work in Integrated mode.
chopps
+1  A: 

I needed to add the handler in the section of the web.config for IIS 7. Hope this helps someone.

chopps
A: 

I needed to add the handler in the section of the web.config for IIS 7. Hope this helps someone

Which handler did you add??? I have an error when I run any website in VWD on my server (I created a new website without changes and I just fire it up).

"No http handler was found for request type 'GET'"

A: 

Switching to Classic .NET AppPool in IIS worked for me - as recommended in chopps' comment.

KevinT
A: 

Just to help make things clear, because they weren't clear to me;

chopps' anser: "I needed to add the handler in the section of the web.config for IIS 7"

means the handler needed to also be in the system.webServer section in the web.config.

+1  A: 

Just to help make things clear, because they weren't clear to me;

chopps' anser: "I needed to add the handler in the section of the web.config for IIS 7"

means the handler needed to also be in the system.webServer section in the web.config.


Could any one name the handler to be added?

<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" />
chopps