Reputation: 4663
I am using the new free .net chart controls and they appear to work fine when I run the project up in visual studio, but when hitting the same via IIS I get and exception:
[HttpException (0x80004005): No http handler was found for request type 'GET']
System.Web.HttpApplication.MapIntegratedHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig, Boolean convertNativeStaticFileModule) +529
System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +947
[HttpException (0x80004005): Error executing child request for ChartImg.axd.]
System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +4120098
System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInitialized(Boolean hardCheck) +266
System.Web.UI.DataVisualization.Charting.Chart.GetImageStorageMode() +25
System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer) +133
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Page.Render(HtmlTextWriter writer) +38
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240
Any idea what I'm doing wrong? Thanks!
Upvotes: 4
Views: 3732
Reputation: 11
Are you using IIS 7? I had the same problem with IIS 7 and I switched the "Managed Pipeline Mode" to Classic in the Application Pool.
Upvotes: 1
Reputation: 4663
Found a solution (sort of)
Solution: It looks like I had the httpHandler correct in the web.config, but I was missing a hander and a appSetting (detailed in second post here). Once I got those sorted out it works fine.
Missing Point: Just not sure why that WOULD work when running it with visual studio. Figure without those setting is should have failed in both environments (visual studio and iis). Curious.
Thanks for everyone's help in pointing in some good directions.
Upvotes: 3
Reputation: 39261
Looks like your IIS is setup not to handle GET verbs. To check in IIS, then go to the site, then click Handler Mappings, find the .aspx handler, click request restrictions, then verbs.
If could also be something in between - like the IIS url scan.
Upvotes: 1
Reputation: 10764
Have you tried publishing a clean version of your project to IIS, as it seems you are missing the handler which deals with the chart image generation.
Upvotes: 1