Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7407211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:40:40+00:00 2026-05-29T05:40:40+00:00

I created the basic pie chart and line graph using MS charting. I am

  • 0

I created the basic pie chart and line graph using MS charting. I am developing in .net framework 4.0 so I didn’t install anything related to charting on my computer.

The charts are working properly on my computer when I run it on localhost, but when I deployed the code on windows server they are not working there.

I am not getting any error either otherwise I would have done some research based on the error. The only thing different on the server is the wwwroot directory is on D: drive and .net framework is installed on C: drive.

Also, the System.web.Datavisualization.dll is present on C: drive. Below is my config file for that aspx page

<configuration> 
<system.web> 
<authorization> 
  <allow roles="ANALYST"/> 
  <deny users="*" /> 

</authorization> 
<httpHandlers> 
  <add path="ChartImg.axd" verb="*" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/> 
</httpHandlers> 

<add key="ChartImageHandler" value="storage=file;timeout=20;" /> 

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:40:41+00:00Added an answer on May 29, 2026 at 5:40 am

    For the charting component you generally need to configure a directory to store the chart in.

    For example:

    <add key="ChartImageHandler" value="storage=file;timeout=20;url=~/ChartImages/" /> 
    

    Note the url parameter. Also, that directory must be configured to allow your application to write to it.

    What’s happening is that when you run it locally, the site is executing in the context of your user account. Obviously you have read/write permissions to drop files anywhere within the projects directories. This is why it “works on your machine”.

    However, when deployed to the web server it is (most likely) executing under your app pools identity. App pools rarely have the appropriate rights to create files anywhere as that would be a security nightmare.

    So, you need to set up a special directory to drop the chart files into. Also you need to make sure the app pool has the appropriate rights to create files in that directory. Finally, you should make damn sure that nothing has rights to execute files in that directory. Otherwise you may as well just zip up your application and data and put a link to that from your home page :/.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create basic line, bar, pie and area charts for .NET 3.5
I have created a basic site using ASP.NET routing according to Mike Ormond's example
I've created this basic 3D Demo using OpenGL/SDL. I handled the keyboard callback so
Created basic C++ DLL and exported names using Module Definition file (MyDLL.def). After compilation
I have created a basic ASP.NET membership application, whereby users can login to view
I've created a basic website using the Orchard CMS, and attempted to deploy it
I have created a) a basic application MVVMLight framework. b) another project in the
I created a pretty basic Django project using django-admin and I'm now running into
I've created a basic MVC 3 website that's using Windows Azure's Access Control Service
I've downloaded google_appengine version 1.3.1. Using some web tutorials, I've created basic django 1.1.1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.