Dundas Chart for ASP.NET
Installation and Configuration
See Also Send comments on this topic.
Introduction > Installation and Configuration

Glossary Item Box

Overview

The .NET framework and Visual Studio .NET have a project and DLL caching feature that can present a problem to users upgrading their .NET controls. Since the Dundas Chart component DLL can reside in multiple places on your development machine, all instances of the DundasWebChart.dll should be replaced with the new version of this dll from the installation.

Aside from the project bin directory, other dll locations that need to be checked include:

 

Installation

The installation will detect if the machine being installed to has a web server. If a web site is detected, you will have the option to create a virtual directory called DundasChartSamples pointing to the samples installed.

The installation automatically inserts the control into the Web Forms tab of Visual Studio's toolbox.

 

Installed Files

The installation will place several folders onto your machine.  Listed below are some key files:

 

Note
To run the samples the Samples folder MUST be at the same level as the bin folder.

  

Configuration

Internet User Account

If charts are created using a method other than binary streaming, then it is required that a chart image be written to the file system. When an ASP.NET application is executed a process is started, the default owner of this process is the user ASPNET. By default, the ASPNET user does not have file system write privileges. These write permissions are required so that the chart object can save a chart image to the file system. It is worthy to note that this lack of permissions is a security feature of the ASP.NET framework. All processes including those of Dundas Chart for ASP.NET are subjected to this permission denial.

 

Note
The default user for Windows 2003 Server is the IIS_WPG account.

 

To overcome this problem, the security settings must be changed for the project folder.

To change the security settings do the following:

  1. Select the folder, right click and select Properties from the context menu that appears.
  2. Click on the Security tab. This tab shows the list of users that have access to this folder. The internet user account, which defaults to the ASPNET user account (for Windows 2003 Server, the default user is IIS_WPG) must be added to the list.
  3. Select the Add button. The Select Users or Groups window will appear.

     

     

    Click on the Advanced button, shown circled in red, to go to the expanded Select Users or Groups screen shown in step 4 below. 
  4. Once the Select Users or Groups screen comes up, click on the Find Now button, shown circled in red, to bring up a list of users for your local machine. 

     

     

  5. Scroll through the list of users for the local machine, and select the internet user account called ASPNET shown highlighted above.
  6. Click the OK button to exit the screen, and click OK again to exit the screen shown in step 3 above. The user USERNAME\ASPNET, is now added among the list of users for this folder. However by default, the user does not have Write permission access.

 

Setting Write Permissions

To give the ASP.NET user the required Write permission access, follow these steps:

  1. Select the ASP.NET user, and ensure the Write permissions checkbox is checked.

     

     

  2. Select OK to exit this screen. The user now has the Write permissions necessary to perform its duties.

 

The samples should now all function correctly.

Uninstall

To uninstall the samples and the control, please note the following points:

  1. Use the Control Panel's Add/Remove Programs to un-install the samples and control.
  2. After uninstalling you may have to manually remove the DundasChartSamples virtual directory created by the installation program (this only applies if you chose to create a virtual directory during the installation process). 
  3. You will also need to remove any files or sub-folders of your installed directory that are not removed by the install.  Generally, these are files created by the end user that the un-install does not recognize and thus does not remove.

 

Requirements

To develop applications using the Chart Web Control you must have the Visual Studio .NET installed (minimum .NET Framework version 1.0.3328). This is available to MSDN Subscribers and is downloadable using the MSDN web site.

Deployment

Deployment of the chart is made simple by the .NET framework. Providing the destination server has the ASP.NET runtime installed, you need only copy your application files and the chart DLL. There should be a Virtual Directory created on the server that will point to your web application folder.

A project's application files include: Project aspx, and code behind files, including a project DLL file (located in the project bin sub-directory with a copy of the chart DLL), and all image files as well as any other files that may be used by your application.

 

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.