Results 1 to 3 of 3

Thread: [RESOLVED] Chart Control

  1. #1

    Thread Starter
    Fanatic Member snufse's Avatar
    Join Date
    Jul 2004
    Location
    Jupiter, FL
    Posts
    912

    Resolved [RESOLVED] Chart Control

    When I drag and drop the chart control from the toolbox to my page I always get "Error Creating Control - Chart1". I have reinstalled the chart control multiple times but does not seems to help. Any ideas?

    Code:
    <add assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    				<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    				<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    				<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation>

    HTML code:

    Code:
    <asp:Chart ID="Chart1" runat="server">
                        <Series>
                            <asp:Series Name="Series1">
                            </asp:Series>
                        </Series>
                        <ChartAreas>
                            <asp:ChartArea Name="ChartArea1">
                            </asp:ChartArea>
                        </ChartAreas>
                    </asp:Chart>
    Last edited by snufse; Aug 6th, 2009 at 01:37 PM.

  2. #2

    Thread Starter
    Fanatic Member snufse's Avatar
    Join Date
    Jul 2004
    Location
    Jupiter, FL
    Posts
    912

    Question Re: Chart Control

    When I did testing creating a new web site, the chart control seemed to work fine. So, I started from scratch and copied my code from the other project and everything seems working. I am now able to drop chart control to the page.

  3. #3
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] Chart Control

    Hey,

    At a guess, I think your web site would have been targetting the .Net 2.0 framework, (since Visual Studio 2008 you have been able to target different frameworks), but the Chart Controls need .Net Framework 3.5. I suspect that the new web site you created targets the .Net 3.5, hence why it is working. You can check this in the properties pages of the project.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width