Object reference error while saving radchart

Thread is closed for posting
2 posts, 0 answers
  1. sabarishbabu
    sabarishbabu avatar
    136 posts
    Member since:
    Apr 2009

    Posted 06 Oct 2009 Link to this post


     Am using rad chart.i want to export my image in local system.

    Am using following code

                    System.IO.MemoryStream ms1 = new System.IO.MemoryStream();
                    this.chartPie.Save(ms1, System.Drawing.Imaging.ImageFormat.Png);
                    this.Page.Response.AddHeader("Content-disposition", "attachment; filename=PieChart.png");
                    this.Page.Response.AddHeader("Content-type", "image/png");

    The chart is getting saved while running in local.while running my project through IIS, i am getting "object reference error".
    I gave all permissions to folders and also IIS.Even setting all permissions, i am getting the same error.

    Thanks for any help,

  2. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 08 Oct 2009 Link to this post

    Hi sabarishbabu,

    Unfortunately we are unable to reproduce the problematic behavior in our local tests with IIS so we are unsure that the problem you are experiencing is related to the control. Please review the attached sample application and let us know how can we observe the issue locally.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top