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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Chart not displayed when I run under local IIS

Thread ID:

Created:

Updated:

Platform:

Replies:

114164 Oct 31,2013 06:52 PM UTC Nov 4,2013 04:50 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: Chart
Robb Gilmore
Asked On October 31, 2013 06:52 PM UTC

Hi,

I am using the chart control on an asp.net page.  It renders fine when I run it through the debugger in Visual Studio.  But when I deploy it to IIS and run it, the charts do not render.   I tried setting the path for the image generation to a different path, but that had no effect.   Can you tell me what else I should try?  Where the charts are supposed to be, I get a little black "X".  Clicking on properties, it tells me it is:

http://localhost/inetmetrics/syncfusion_generate.ashx?id=a198ccc5-e55f-471c-8cd3-f0a1bb933ddf

Thanks,

Robb


Bharathiraja K [Syncfusion]
Replied On November 4, 2013 04:50 AM UTC

Hi Robb,

Thanks for using Syncfusion products.

We suspect that you have missed “ChartWebHandler” in your web.config file handlers tag and it will be caused to display broken chart image in IIS web page. Essential Chart requires chart handlers to be added in configuration file for rendering chart in a web page. For displaying chart in Visual Studio development server, chart handler should be added in <httpHandlers> tag of the configuration file.

Please refer the following code snippet to achieve this:

[web.config]

    <httpHandlers>

      <add path='syncfusion_generate.ashx' verb='*' type='Syncfusion.Web.UI.WebControls.Chart.ChartWebHandler,Syncfusion.Chart.Web, Version=11.3040.0.30, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' />

    </httpHandlers>

For displaying chart in IIS server, chart handler which specifies the name, path and type of the handler should be added in the configuration file under the following tag:

system.webServer => handlers

Please refer the following code snippet to add handler for displaying chart in IIS:

[web.config]

<system.webServer>

    <modules runAllManagedModulesForAllRequests='true' />

    <validation validateIntegratedModeConfiguration='false' />

    <handlers>

      <add name='syncfusion_generate' path='syncfusion_generate.ashx' verb='*' type='Syncfusion.Web.UI.WebControls.Chart.ChartWebHandler,Syncfusion.Chart.Web, Version=11.3040.0.30, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' />

    </handlers>

  </system.webServer>

For your convenience, we have created a simple sample for displaying chart in IIS server and it can be downloaded from the following link:

Sample link: http://www.syncfusion.com/downloads/support/directtrac/113082/IISWebServer-2060907750.zip

Please confirm your current Essential Studio version and whether chart handlers are added in the configuration file (web.config). we have created sample for Essential Studio latest version 11.3.0.30.

Please let us know if the solution helps.

Regards,

Bharathiraja.

 


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.

Warning Icon 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.Close Icon

;