Sign in to follow this  
Mansi Shah

Error Summary HTTP Error 405.0 - Method Not Allowed

Recommended Posts





I want to save the chart to download and also save it to the disk, so using code provided at


-Returning image as download


-Saving to server disk




But while returning image as download, it shows the capturing process and then throws the below error.




Error Summary


HTTP Error 405.0 - Method Not Allowed


The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.




Module DirectoryListingModule


Notification ExecuteRequestHandler


Handler StaticFile


Error Code 0x80070001


Requested URL http://localhost:80/golf/FusionCharts/ExportHandlers/ASP_Net/


Physical Path C:inetpubwwwrootGolfGolfWebFusionChartsExportHandlersASP_Net


Logon Method Anonymous


Logon User Anonymous




And while saving it to server disk, it completes the capturing process but, it is not storing the image on provided path.




What causes this issue? Anything wrong with web.config?

Share this post

Link to post
Share on other sites





FusionCharts uses POST method to send data to the server export handler.


405.0 error generally says that this verb is not supported.




Please let me know, whether you are calling both methods simultaneously or separately.




Also please make sure that you are providing the full path of the export handler file along with the path :




e.g. exportHandler=''

Share this post

Link to post
Share on other sites





After reading the reply, I just tried to save the image on disk, instead of downloading it from the context menu.


So, now it neither throws that bug, nor saves the image.




Basically I need to do is to export chart image to PDF.


Say, I have many tests user has inputted on site, now for some, it may create chart, and for some, it may create just text analysis.


For that I am using iTextSharp, and I need to put the chart image inbetween of the PDF.




So, for that I have to use the exportHandler only.


Here is how I am using it..


Client side


   < script language="Javascript" type="text/javascript" src="../FusionCharts/FusionCharts.js" >< /script >

  < script language="Javascript" type="text/javascript" src="../FusionCharts/FusionChartsExportComponent.js" >< /script > 

< div id="dvChart" runat="server" >


      < /div >   




Server side - GetChart function




xmlData.Append("< chart bgColor='FFFFFF,FFFFFF' showBorder='0' exportEnabled='1' exportAtClient='0' exportAction='save' exportHandler='http://localhost/golf/FusionCharts/ExportHandlers/ASP_Net/FCExporter.aspx' exportFileName ='mansi' > ");


---some code to create chart..


FusionCharts.RenderChart("../FusionCharts/MSColumn3D.swf", "myChartId", xmlData.ToString(), "BallTest", "700", "400", false, true);




And here is Exporter class basic settings




public partial class FCExporter : System.Web.UI.Page




private const string SAVE_PATH = "./Chart_Images/";


private const string HTTP_URI = "http://localhost/golf/Chart_Images/";


private bool OVERWRITEFILE = false;


private bool INTELLIGENTFILENAMING = true;








But when after chart loading, I see the folder "Chart_Images", it doesn't show any image..




Where am I wrong? :)

Share this post

Link to post
Share on other sites





Please make sure that you have a .... ExportHandlers/ASP_Net/Chart_Images/ folder in your server.




As per our documentation :




/// '. /' ( without the space after .) is the directory where the FCExporter.aspx file recides.

Share this post

Link to post
Share on other sites

The chart_images folder is there.




But it does not save any image in that. Do I need to write any code for that separately, say, for any button click?




Or after rendering at


FusionCharts.RenderChart("../FusionCharts/MSColumn3D.swf", "myChartId", xmlData.ToString(), "BallTest", "700", "400", false, true);




it will automatically save the image?

Edited by Guest

Share this post

Link to post
Share on other sites

Oh.. I got the image.




But through the context menu, by clicking "Save as JPEG Image".




Can't I create that automatically, after rendering chart, without the help of context menu. Because I am not going to show the chart on page, I just need to fetch the data from database, and have to export them to PDF.

Share this post

Link to post
Share on other sites

Can I have the answer of question I asked?




How can save image automatically to server, without taking help of context menu?




I am in search of answer of his question since last 3 days.. It's taking too much of time..:crazy:

Share this post

Link to post
Share on other sites

Hi Mansi,




Apologies for the delay.




If you are using ASP.NET 2.0 or more you can use one of our Assemblies that would help you generate chart as image at server side.




Pleas send us your order id to [email protected] to get the Assembly.





Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this