So here it is old code from 2008 version first:
worked perfectly. Upgraded to new version and I got a series of wonderful errors.
here is a little more error info
so frustrated. Just want it to work like it did.
Please help
<
telerik:RadChart
PlotArea-XAxis-Appearance-Visible
=
"true"
ID
=
"MoodChart"
runat
=
"server"
ClientSettings-EnableZoom
=
"false"
ChartImageFormat
=
"Png"
DefaultType
=
"Line"
EnableEmbeddedBaseStylesheet
=
"False"
CreateImageMap
=
"False"
EnableHandlerDetection
=
"False"
EnableTheming
=
"False"
EnableViewState
=
"False"
Legend-Visible
=
"False"
ChartTitle-Visible
=
"False"
ClientSettings-ScrollMode
=
"XOnly"
BorderWidth
=
"0"
Width
=
"696px"
Height
=
"400px"
>
<
PlotArea
XAxis-AutoScale
=
"True"
XAxis-AutoShrink
=
"True"
YAxis2-AutoScale
=
"False"
YAxis2-IsZeroBased
=
"False"
YAxis2-MaxValue
=
"0"
YAxis2-MinValue
=
"-10"
YAxis-MaxValue
=
"0"
YAxis-MinValue
=
"-10"
XAxis-MaxValue
=
"50"
XAxis-Visible
=
"Auto"
DataTable-Visible
=
"False"
YAxis-AutoScale
=
"False"
YAxis-AxisMode
=
"Extended"
>
<
Appearance
FillStyle-MainColor
=
"White"
FillStyle-SecondColor
=
"White"
FillStyle-FillType
=
"Solid"
Dimensions-Paddings
=
"0"
Dimensions-Margins
=
"10,10,10,35"
Dimensions-AutoSize
=
"false"
Dimensions-Height
=
"370"
Dimensions-Width
=
"656"
Position-Auto
=
"false"
Position-X
=
"0"
Position-Y
=
"0"
>
</
Appearance
>
<
YAxis
>
<
Appearance
MajorGridLines-Color
=
"191,203,217"
MinorTick-Visible
=
"false"
></
Appearance
>
</
YAxis
>
<
XAxis
>
<
Appearance
LabelAppearance-Visible
=
"False"
></
Appearance
>
</
XAxis
>
</
PlotArea
>
<
Series
>
<
telerik:ChartSeries
Name
=
"Series 1"
Type
=
"Line"
>
<
Appearance
Border-Visible
=
"False"
Border-Width
=
"0"
Border-PenStyle
=
"Solid"
ShowLabels
=
"true"
LegendDisplayMode
=
"Nothing"
>
<
FillStyle
MainColor
=
"#1A54A6"
>
</
FillStyle
>
</
Appearance
>
</
telerik:ChartSeries
>
</
Series
>
</
telerik:RadChart
>
Private
Sub
LoadGraph()
MyMoodData.SelectParameters.Clear()
MyMoodData.SelectParameters.Add(
"MemberGUID"
, Membership.GetUser.ProviderUserKey.ToString)
MyMoodData.SelectParameters.Add(
"StartDate"
, StartDate.SelectedDate)
MyMoodData.SelectParameters.Add(
"EndDate"
, EndDate.SelectedDate)
Dim
dv
As
DataView =
CType
(MyMoodData.
Select
(DataSourceSelectArguments.Empty), DataView)
If
dv.Table.Rows.Count < 1
Then
MoodChart.Visible =
False
NoMood.Visible =
True
Else
MoodChart.Appearance.Border.Visible =
False
MoodChart.Series(0).DataYColumn =
"Mood"
MoodChart.Series(0).i()
MoodChart.DataSource = dv
MoodChart.DataBind()
Dim
intArray
As
Integer
() =
New
Integer
(3) {10, 12, 13, 5}
MoodChart.DataSource = intArray
MoodChart.DataBind()
End
If
End
Sub
worked perfectly. Upgraded to new version and I got a series of wonderful errors.
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30560: 'ChartSeries' is ambiguous in the namespace 'Telerik.Charting'.
Source Error:
Line 69: </
PlotArea
>
Line 70: <
Series
>
Line 71: <
telerik:ChartSeries
Name
=
"Series 1"
Type
=
"Line"
>
Line 72: <
Items
>
Line 73: <
telerik:ChartSeriesItem
YValue
=
"1"
Name
=
"Item 20"
>
Source File: C:\Users\mreeder\Desktop\MoodyMindsv1\MoodyMindsV1\ControlCenter\MyMood\DepressionGraph.aspx Line: 71
here is a little more error info
Warning: BC40056: Namespace or type specified in the Imports 'System.Xml.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Source Error:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.0.vb
Line 32: Imports System.Web.UI.WebControls
Line 33: Imports System.Web.UI.WebControls.WebParts
Line 34: Imports System.Xml.Linq
Line 35: Imports Telerik.Charting
Line 36: Imports Telerik.Web.UI
Show Detailed Compiler Output:
c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework\v3.5\vbc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\78d7a2ab\00414c0a_45b9c701\QualityData.Membership.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_global.asax.nwuafvdx.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_93ocfv5o.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\85f176e1\005fd95f_1a68ca01\paypal_base.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\0913c98b\003c95fb_92f6ca01\Telerik.Web.UI.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\aa352346\003f5143_ff1fca01\Elmah.DLL" /R:"C:\Windows\assembly\GAC_MSIL\Telerik.Reporting\4.0.10.423__a9d7983dfcc261be\Telerik.Reporting.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\5423ef6e\5c6d12b3_2a1fcb01\MoodyMindsV1.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_x6hiwzgd.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\afc19a06\00485bfc_01e4c801\log4net.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Code.l19trfvy.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_itiayool.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\3f7fd362\0093871f_51cec701\Intelligencia.UrlRewriter.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing.Design\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.Design.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\Windows\assembly\GAC_MSIL\Telerik.ReportViewer.WebForms\4.0.10.423__a9d7983dfcc261be\Telerik.ReportViewer.WebForms.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\Telerik.Charting\2.0.4.0__d14f3dcc8e3e8763\Telerik.Charting.dll" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.dll" /D:DEBUG=1 /debug+ /win32resource:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\3svd8jgb.res" /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Linq,System.Xml.Linq,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls /warnaserror- /optionInfer+ "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.0.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.1.vb"
Microsoft (R) Visual Basic Compiler version 9.0.30729.715
Copyright (c) Microsoft Corporation. All rights reserved.
vbc : warning BC40057: Namespace or type specified in the project-level Imports 'System.Xml.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.0.vb(34) : warning BC40056: Namespace or type specified in the Imports 'System.Xml.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Imports System.Xml.Linq
~~~~~~~~~~~~~~~
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.0.vb(401) : error BC30560: 'ChartXAxis' is ambiguous in the namespace 'Telerik.Charting'.
Private Sub __BuildControl__control9(ByVal __ctrl As Telerik.Charting.ChartXAxis)
~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.0.vb(415) : error BC30560: 'ChartYAxis' is ambiguous in the namespace 'Telerik.Charting'.
Private Sub __BuildControl__control10(ByVal __ctrl As Telerik.Charting.ChartYAxis)
~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.0.vb(434) : error BC30560: 'ChartPlotArea' is ambiguous in the namespace 'Telerik.Charting'.
Private Sub __BuildControl__control8(ByVal __ctrl As Telerik.Charting.ChartPlotArea)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
so frustrated. Just want it to work like it did.
Please help