473,383 Members | 1,929 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,383 software developers and data experts.

Unspecified error | FrameWork 1.1 | ASP.net | SQL 2000

I get this error once in a while and I normally could fix it by restarting IIS. However, I would like to find out what causes this. Can anyone help?

-----------------------------error screen-----------------------------------

System.Data.OleDb.OleDbException: Unspecified error

at System.Data.OleDb.OleDbDataReader.ProcessResults(I nt32 hr)

at System.Data.OleDb.OleDbDataReader.GetRowHandles()

at System.Data.OleDb.OleDbDataReader.ReadRowset()

at System.Data.OleDb.OleDbDataReader.Read()

at System.Data.OleDb.OleDbDataReader.HasRowsRead()

at System.Data.OleDb.OleDbDataReader.NextResult()

at System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior behavior, String method)

at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior behavior)

at System.Data.OleDb.OleDbCommand.System.Data.IDbComm and.ExecuteReader(CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable)

at DreamweaverCtrls.DataSet.DoInit()<hr>System.Data.O leDb.OleDbException: Unspecified error

at System.Data.OleDb.OleDbDataReader.ProcessResults(I nt32 hr)

at System.Data.OleDb.OleDbDataReader.GetRowHandles()

at System.Data.OleDb.OleDbDataReader.ReadRowset()

at System.Data.OleDb.OleDbDataReader.Read()

at System.Data.OleDb.OleDbDataReader.HasRowsRead()

at System.Data.OleDb.OleDbDataReader.NextResult()

at System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior behavior, String method)

at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior behavior)

at System.Data.OleDb.OleDbCommand.System.Data.IDbComm and.ExecuteReader(CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable)

at DreamweaverCtrls.DataSet.DoInit()<hr>System.Except ion: The DefaultView was requested but no tables yet exist.

at DreamweaverCtrls.DataSet.get_DefaultView()<hr>Syst em.Data.OleDb.OleDbException: Unspecified error

at System.Data.OleDb.OleDbDataReader.ProcessResults(I nt32 hr)

at System.Data.OleDb.OleDbDataReader.GetRowHandles()

at System.Data.OleDb.OleDbDataReader.ReadRowset()

at System.Data.OleDb.OleDbDataReader.Read()

at System.Data.OleDb.OleDbDataReader.HasRowsRead()

at System.Data.OleDb.OleDbDataReader.NextResult()

at System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior behavior, String method)

at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior behavior)

at System.Data.OleDb.OleDbCommand.System.Data.IDbComm and.ExecuteReader(CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable)

at DreamweaverCtrls.DataSet.DoInit()<hr>System.Except ion: The DefaultView was requested but no tables yet exist.

at DreamweaverCtrls.DataSet.get_DefaultView()<hr>

----------------------- web.config -----------------------------------------------------
<configuration><appSettings><add key="CONNECTION_HANDLER_app_Conn" value="default_oledb.htm" /><add key="CONNECTION_STRING_app_Conn" value="Provider=SQLOLEDB.1;Password=password;User ID=username;Initial Catalog=dbname;Data Source=123.123.123.123" /><add key="CONNECTION_DATABASETYPE_app_Conn" value="OleDb" /><add key="CONNECTION_SCHEMA_app_Conn" value="" /><add key="CONNECTION_CATALOG_app_Conn" value="" /></appSettings></configuration>
Nov 17 '05 #1
3 1906
"GotdotNet" <nv****@yahoo.com> wrote in message
news:79**********************************@microsof t.com...
I get this error once in a while and I normally could fix it by restarting IIS. However, I would like to find out what causes this. Can anyone help?


For whatever reason, you appear to be working with a DataView for a table
that is not being brought into existence in your code. Two bits of advice
for getting a more meaningful error message:

a) Use the native System.Data.SqlClient provider, instead of OleDb, i.e.
instead of the OleDbDataAdapter, use the SqlDataAdapter, etc.
b) Put the SQL execution inside a try/catch block, throw your own exception,
and then publish the info from the InnerException. Like this:

try
{
cmd.ExecuteNonQuery();
}
catch (SqlException E)
{
System.Text.StringBuilder MyErr = new System.Text.StringBuilder();
MyErr.Append("A Data exception occured\r\n");
MyErr.Append("Source: " + E.Source);
MyErr.Append("\r\nMessage:" + E.Message);
if (E.InnerException != null)
{
MyErr.Append("\r\nInner: " + E.InnerException.Message);
}
throw new SystemException(MyErr.ToString());
}
Nov 17 '05 #2
Rich - Thanks for your advice!

Here's the issue, where should I place the try/catch block in this page?

----------------------------------- sample.aspx -------------------------------------------------

<%@ Page Language="VB" ContentType="text/html" debug="false"%><%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,culture=neutral" %><MM:DataSet
runat="Server"
id="GETStuff"
IsStoredProcedure="true"
CreateDataSet="true"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSett ings("CONNECTION_STRING_app_Conn") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSett ings("CONNECTION_DATABASETYPE_app_Conn") %>'
CommandText="dbo._RunSProc"
Debug="true"
<Parameters><Parameter Name="@id" Value='<%# IIf((Request.QueryString("id") <> Nothing), Request.QueryString("id"), "") %>' Type="Integer" Direction="Input" /><Parameter Name="@string" Value='<%# "Take this" %>' Type="VarChar" Direction="Input" /></Parameters></MM:DataSet><MM:PageBind runat="server" PostBackBind="true" /><html><head><title>Test</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><%

server.Execute(GETStuff.FieldValue("NavTopHTML", Container))
%><ASP:Repeater runat="server" DataSource='<%# GETStuff.DefaultView %>'><ItemTemplate><a href="goto.aspx?id=<%# GETStuff.FieldValue("id", Container) %>"><%# GETStuff.FieldValue("Item", Container) %></a><Br></ItemTemplate></ASP:Repeater></body></html>
Nov 17 '05 #3
Maybe I should format this for easier viewing:

<%@ Page Language="VB" ContentType="text/html" debug="false"%><%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,culture=neutral" %><MM:DataSet
runat="Server"
id="GETStuff"
IsStoredProcedure="true"
CreateDataSet="true"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSett ings("CONNECTION_STRING_app_Conn") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSett ings("CONNECTION_DATABASETYPE_app_Conn")
%>'
CommandText="dbo._RunSProc"
Debug="true"><Parameters><Parameter Name="@id" Value='<%# IIf((Request.QueryString("id") <> Nothing), Request.QueryString("id"), "") %>' Type="Integer" Direction="Input" /><Parameter Name="@string" Value='<%# "Take this" %>' Type="VarChar" Direction="Input" /></Parameters></MM:DataSet><MM:PageBind runat="server" PostBackBind="true" /><html><head><title>Test</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><% server.Execute(GETStuff.FieldValue("NavTopHTML", Container)) %><ASP:Repeater runat="server" DataSource='<%# GETStuff.DefaultView %>'><ItemTemplate><a href="goto.aspx?id=<%# GETStuff.FieldValue("id", Container) %>"><%# GETStuff.FieldValue("Item", Container) %></a><Br></ItemTemplate></ASP:Repeater></body></html>
Nov 17 '05 #4

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

Similar topics

4
by: RM | last post by:
Had VS .Net 2002 installed on W2k Server SP3 and supported a number of web sites. Installed VS .Net 2003 on Friday and now all web sites using .Net & MS ACCESS get this strange error upon open. ...
4
by: Troy | last post by:
We recently installed the .Net framework on a windows 2000 server. Shortly after that we experienced intermitant problems running a web based program that accesses an Access 2002 database. The...
1
by: Billy Hart | last post by:
I am getting this error on my win 2000 server when a .net app that a programmer in my office developed. I have read other posts about the issue but the resolutions to those posts did not solve the...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
1
by: Siegfried Heintze | last post by:
I'm using a third party hosting service. I presently have a Web Service on this hosting service's server that loads and executes a native mode DLL. This demonstrates that the hosting service has...
7
by: Jim McGivney | last post by:
ASPX page from VS.net-C# on host's computer using oleDataAdaptor to connect to Microsoft Access database. The page loads, but when connection to the database is attempted to fill a datagrid the...
0
by: Siegfried Heintze | last post by:
I have an ASP.NET web page that works greate from my machine. However, when I upload it to my hosting service, I get the error below. I am using impersonation in my web.config file to...
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
0
by: ratsekil via AccessMonster.com | last post by:
Pls Help ! "Unspecified error" ------------------------------------------------------------------------------ -- I'm using Windows Server 2003, making the webpages with ASP+Access(2000) ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.