473,385 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Catastrophic failure

IM getting this error when i try to run Teecharts ActiveX control in asp.net
environment

can some one help me in it

Regards Moid Iqbal

Catastrophic failure
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Catastrophic
failure

Source Error:

Line 59: dr = com.ExecuteReader
Line 60: Dim tchart As New TeeChart.TChart()
Line 61: tchart.Series(0).DataSource = dr
Line 62: tchart.Series(0).YValues.ValueSource = "tons"
Line 63: tchart.Series(0).LabelsSource = "shift date"

Source File: D:\Inetpub\wwwroot\Accuweigh\subreports\teechartpr eview.aspx.vb
Line: 61

Stack Trace:

[COMException (0x8000ffff): Catastrophic failure]
TeeChart.TChartClass.Series(Int32 SeriesIndex) +0
Accuweigh.teechartpreview.assd() in
D:\Inetpub\wwwroot\Accuweigh\subreports\teechartpr eview.aspx.vb:61
Accuweigh.teechartpreview.Page_Load(Object sender, EventArgs e) in
D:\Inetpub\wwwroot\Accuweigh\subreports\teechartpr eview.aspx.vb:46
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Page.ProcessRequestMain() +724

----------------------------------------------------------------------------
----

Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET
Version:1.0.3705.288
Dim con As New OdbcConnection("DRIVER={MySQL ODBC 3.51 Driver}; SERVER=
localhost; DATABASE = accuweigh ; UID = root; PASSWORD=;")
Dim dr As OdbcDataReader
con.open()
Dim com As New OdbcCommand("select date_format(chronology.shiftdate,'%b
%d,%x') as 'shift date',round(sum(draglinecycles.tons),2) as 'tons' from
chronology left join draglinecycles on draglinecycles.excavator =
chronology.excavator and draglinecycles.recindx = chronology.recindx group
by 'excavator' order by 'excavator'", con)
dr = com.ExecuteReader
Dim tchart As New TeeChart.TChart()
tchart.Series(0).DataSource = dr
tchart.Series(0).YValues.ValueSource = "tons"
tchart.Series(0).LabelsSource = "shift date"
Response.BinaryWrite(tchart.Export.asPNG.SaveToStr eam())

Ive Also used this code but the error was the same as given above

Dim con As New ADODB.Connection()
Dim rs As New ADODB.Recordset()
con.ConnectionString = "DRIVER={MySQL ODBC 3.51
Driver};SERVER=localhost;DATABASE=accuweigh;UID=ro otPASSWORD=;"
con.Open()
rs.Open("select date_format(chronology.shiftdate,'%b %d,%x') as 'shift
date',round(sum(draglinecycles.tons),2) as 'tons' from chronology left join
draglinecycles on draglinecycles.excavator = chronology.excavator and
draglinecycles.recindx = chronology.recindx group by 'excavator' order by
'excavator'", con)
Dim tchart As New TeeChart.TChart()
tchart.Series(0).DataSource = rs
tchart.Series(0).YValues.ValueSource = "tons"
'tchart.Series(0).LabelsSource = "shift date"
'Response.BinaryWrite(tchart.Export.asPNG.SaveToSt ream())

Nov 17 '05 #1
0 2170

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: eddie wang | last post by:
I got the following when opening up a page. It usually happens after I modify one page(not connections.asp) without refresh in IE. I have to refresh the IE browser and the error usually will go...
2
by: MeAndI | last post by:
Hi, I've create a custom com object and I use it as follow: set test = Server.CreateObject(myObject.classID) ' --> all OK the istance of the object is correctly created retval =...
4
by: J. Marshall Latham | last post by:
I have written an ASP.NET web app in C# that is trying to connect to a database using OleDb. I put code in a dll that uses another dll to create a connection object (and open it if requested) to...
1
by: sakthisakthi | last post by:
Hai I had developed one web application in dotnet with VB.net as code behind. I had included one addtional Acitvex control (FpLibX.ocx) in toolbar by selecting Cutomize tool bar. Then in...
0
by: Veibert M Pinontoan | last post by:
I try to create wrapper for WMSyncReader. The code is :using System; using System.Runtime.InteropServices; namespace WMFSDKWrapper { public class WMFSDKFunctions { public static extern uint...
5
by: mattiassich | last post by:
The following code causes unhandled exception on the line: New ManagementObjectSearcher(query) Dim mos As System.Management.ManagementObjectSearcher Dim moc As...
2
by: jdanoz | last post by:
Hello, i have a vb.net project with a reference to an ActiveX object (ocx). If i try to use the ocx from vb6 project (adding the reference) it works ok (using CreateObject). In vb.net, the...
0
by: joef | last post by:
I'm running VS on my PC (W2K) connected to a remote IIS server (W2K) SP4 that is not a domain controller. I've got the ASPNET and IWAM accounts in the "Impersonate a client after authentication"...
5
by: Tony M. | last post by:
I just want to share a discovery. I was using a sub routine to call itself, a recursive loop. In it I used ADO to process records, and I was getting a "Catastrophic Failure", almost always...
2
by: Frav | last post by:
The Reps team have been experiencing that Access 2002 unexpectedly quits while working and also lots of Corruption Failures and "Record lock can not update" messages since the upgrade from...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.