You might hit an exception while sdding MSCHART to your Windows azure Web Role and WCF service could cause exception as below:
You will hit an exception as below:
To solve this problem you just need to add the following in your web.config inside system.webserver section:
The final system.webserver looks like as below:
<system.webServer> <modules runAllManagedModulesForAllRequests="true" /> <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=22.214.171.124, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </handlers> <validation validateIntegratedModeConfiguration="false"/> </system.webServer>
Can you give some background as to why the exception is thrown and the fix is necessary? You don't post issues like this about every control so I assume there is something specific about this control that is a little wonky.