crstuart99
Technical User
I'm getting this error with my asp page...I've changed the web.config file to on and off..and still getting this page...i've also included my code after the error...anyone see any problems...
Server Error in '/' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<%@ Page Language="VB" %>
<%@ Register tagPrefix="web" Assembly="WebChart" Namespace="WebChart" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
<script runat=server>
Sub Page_Load(o as object, e as EventArgs)
Dim reader As IDataReader = GetReader()
Dim chart As New SmoothLineChart()
chart.DataXValueField = "Year"
chart.DataYValueField = "Price"
chart.DataSource = reader
chart.DataBind()
chart.Legend = "This Chart produced by ChartControl1.Legend.Width = 40
ChartControl1.Charts.Add(chart)
ChartControl1.RedrawChart()
End Sub
' Configure some colors for the Chart, this could be done declaratively also
Function GetReader() As IDataReader
Dim connection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; data source=" & Server.MapPath("database/TwentyDollarGold.mdb"))
Dim command As New OleDbCommand("SELECT Price, Year FROM Twenties2 order by Year", connection)
connection.Open()
Return command.ExecuteReader(CommandBehavior.CloseConnection)
End Function
</script>
<html>
<body>
<form id="Form1" runat="server">
<web:ChartControl runat="server" Width="800px" Height="523px"
id="ChartControl1" BottomChartPadding=30 ChartPadding=30 GridLines="Both" ShowTitlesOnBackground="False" TopPadding="30" YCustomEnd="6000" YCustomStart="0" YValuesInterval="500" BorderColor="Black" Legend-Position="Bottom" Background-Color="Yellow" Background-CenterColor="Yellow">
<XAxisFont StringFormat="Center,Center,Character,DirectionVertical" Font="Tahoma, 8pt, style=Bold" />
<YAxisFont StringFormat="Far,Near,Character,LineLimit" />
<XTitle Font="Tahoma, 8pt, style=Bold" ForeColor="SteelBlue" StringFormat="Center,Far,Character,LineLimit" />
<PlotBackground Angle="90" EndPoint="100, 700" ForeColor="#FFFFff" Type="LinearGradient" />
<ChartTitle Font="Tahoma, 15pt, style=Bold" ForeColor="Black" StringFormat="Center,Near,Character,LineLimit" Text="US Gold Coins Price History" />
<Border Color="CornflowerBlue" />
<Background Angle="90" Color="Yellow" EndPoint="100, 400" ForeColor="#80FF80"
Type="LinearGradient" CenterColor="Black" />
<YTitle Font="Tahoma, 8pt, style=Bold" ForeColor="SteelBlue" StringFormat="Near,Near,Character,DirectionVertical" />
</web:ChartControl>
</form>
</body>
</html>
Server Error in '/' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<%@ Page Language="VB" %>
<%@ Register tagPrefix="web" Assembly="WebChart" Namespace="WebChart" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
<script runat=server>
Sub Page_Load(o as object, e as EventArgs)
Dim reader As IDataReader = GetReader()
Dim chart As New SmoothLineChart()
chart.DataXValueField = "Year"
chart.DataYValueField = "Price"
chart.DataSource = reader
chart.DataBind()
chart.Legend = "This Chart produced by ChartControl1.Legend.Width = 40
ChartControl1.Charts.Add(chart)
ChartControl1.RedrawChart()
End Sub
' Configure some colors for the Chart, this could be done declaratively also
Function GetReader() As IDataReader
Dim connection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; data source=" & Server.MapPath("database/TwentyDollarGold.mdb"))
Dim command As New OleDbCommand("SELECT Price, Year FROM Twenties2 order by Year", connection)
connection.Open()
Return command.ExecuteReader(CommandBehavior.CloseConnection)
End Function
</script>
<html>
<body>
<form id="Form1" runat="server">
<web:ChartControl runat="server" Width="800px" Height="523px"
id="ChartControl1" BottomChartPadding=30 ChartPadding=30 GridLines="Both" ShowTitlesOnBackground="False" TopPadding="30" YCustomEnd="6000" YCustomStart="0" YValuesInterval="500" BorderColor="Black" Legend-Position="Bottom" Background-Color="Yellow" Background-CenterColor="Yellow">
<XAxisFont StringFormat="Center,Center,Character,DirectionVertical" Font="Tahoma, 8pt, style=Bold" />
<YAxisFont StringFormat="Far,Near,Character,LineLimit" />
<XTitle Font="Tahoma, 8pt, style=Bold" ForeColor="SteelBlue" StringFormat="Center,Far,Character,LineLimit" />
<PlotBackground Angle="90" EndPoint="100, 700" ForeColor="#FFFFff" Type="LinearGradient" />
<ChartTitle Font="Tahoma, 15pt, style=Bold" ForeColor="Black" StringFormat="Center,Near,Character,LineLimit" Text="US Gold Coins Price History" />
<Border Color="CornflowerBlue" />
<Background Angle="90" Color="Yellow" EndPoint="100, 400" ForeColor="#80FF80"
Type="LinearGradient" CenterColor="Black" />
<YTitle Font="Tahoma, 8pt, style=Bold" ForeColor="SteelBlue" StringFormat="Near,Near,Character,DirectionVertical" />
</web:ChartControl>
</form>
</body>
</html>