Skip Navigation Links   |  Contact  

Make payments with PayPal - it's fast, free and secure!

Frequently asked questions.



For new information on Builds and demos, please send email to webchart@carlosag.net or visit http://www.carlosag.net/

FOR USERS WITHOUT VS.NET

To use the control you just need to:
  1. Add a reference to WebChart.dll in VS.NET and optionally you can add it to your toolbox.
  2. Add the correct register tag in the page:
    <%@ Register TagPrefix="Web" Namespace="WebChart" Assembly="WebChart" %>
  3. Add the simplest chart possible:
    <web:chartcontrol id="chart" runat="server">
    </Web>
  4. From this point you can use the VS.NET designer to format your chart.
  5. BTW. Remember to call RedrawChart() whenever you want the chart to be redrawn
    (usually in Page_Load or after changing the data, etc) if not you will only
    receive an empty image, this is by design to avoid redrawing unnecesary charts for performance.

FOR USERS OF VS.NET

The steps above are only needed if you like doing things manually, with VS.NET things can be easier:
  1. Open or Create a New Web Project in the language of your choice
  2. Just open your toolbox (if it does not appears click Ctrl+Alt+X)
  3. Right click on it and Select the option “Customize Toolbox”
  4. select the Tab “.NET Framework Components”, then click “Browse…” and just search for the extracted WebChart.dll file.
  5. Doing this, will add a small chart icon in your toolbox, and now, you can just drag/drop it in the VS.NET Designer, and it will actually add the reference automatically for you in any web project.
  6. From this point, you can add/remove charts from the designer, use the AutoFormat task (right click on the chart) to customize look & feel. etc

SETUP KNOWN ISSUES:

    The way the chart works is rendering the charts into a folder called WebCharts, so, if the folder does not exist, 
        it tries to create it, so it can store the charts there.
    One known issue is with Windows XP, and probably Win 2K3, that they do not grant write permission to the folders to the 
    ASPNET account (or Network Service account).
    So just to be sure, if the chart is working on the vs.net designer, but it is not working when seeing the actual page:

    1) Under your application virtual directory create a folder named WebCharts
    2) grant NTFS write permissions to the ASPNET account (be sure not to grant write permissions in the IIS MMC since that could be a security hole).

    Try again.


    So for example if your virtual directory is named MyApplication and lives in the default dirs.
    You would need to create 
    C:\inetpub\wwwroot\MyApplication\WebCharts\

    And assign read and write permissions to ASPNET account.

    If this doesn’t work, tell me and we will find out a solution quickly. 
    And please check the Application Event log to see if there are any (Application) errors to give us a clue.

    Thanks for using the WebChart control.

    Carlos



    More details on troubleshooting:

    If you find this exception, it means it is trying to write an error to the event viewer, and it couldnt gain access to it. 
    This is normally because of Write Permissions on the registry.
    So the problem usually is because it couldn't create the WebCharts folder mentioned above, so follow the steps mentioned above.
    
    Security Exception 
    Description: The application attempted to perform an operation not allowed by the security policy. 
    To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. 
    Exception Details: System.Security.SecurityException: Requested registry access is not allowed.

Carlos Aguilar Mares © 2008