473,655 Members | 3,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Ole Db.OleDbExcepti on: Unspecified error

at System.Data.Ole Db.OleDbDataRea der.ProcessResu lts(Int32 hr)

at System.Data.Ole Db.OleDbDataRea der.GetRowHandl es()

at System.Data.Ole Db.OleDbDataRea der.ReadRowset( )

at System.Data.Ole Db.OleDbDataRea der.Read()

at System.Data.Ole Db.OleDbDataRea der.HasRowsRead ()

at System.Data.Ole Db.OleDbDataRea der.NextResult( )

at System.Data.Ole Db.OleDbCommand .ExecuteReaderI nternal(Command Behavior behavior, String method)

at System.Data.Ole Db.OleDbCommand .ExecuteReader( CommandBehavior behavior)

at System.Data.Ole Db.OleDbCommand .System.Data.ID bCommand.Execut eReader(Command Behavior behavior)

at System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable)

at DreamweaverCtrl s.DataSet.DoIni t()<hr>System.D ata.OleDb.OleDb Exception: Unspecified error

at System.Data.Ole Db.OleDbDataRea der.ProcessResu lts(Int32 hr)

at System.Data.Ole Db.OleDbDataRea der.GetRowHandl es()

at System.Data.Ole Db.OleDbDataRea der.ReadRowset( )

at System.Data.Ole Db.OleDbDataRea der.Read()

at System.Data.Ole Db.OleDbDataRea der.HasRowsRead ()

at System.Data.Ole Db.OleDbDataRea der.NextResult( )

at System.Data.Ole Db.OleDbCommand .ExecuteReaderI nternal(Command Behavior behavior, String method)

at System.Data.Ole Db.OleDbCommand .ExecuteReader( CommandBehavior behavior)

at System.Data.Ole Db.OleDbCommand .System.Data.ID bCommand.Execut eReader(Command Behavior behavior)

at System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable)

at DreamweaverCtrl s.DataSet.DoIni t()<hr>System.E xception: The DefaultView was requested but no tables yet exist.

at DreamweaverCtrl s.DataSet.get_D efaultView()<hr >System.Data.Ol eDb.OleDbExcept ion: Unspecified error

at System.Data.Ole Db.OleDbDataRea der.ProcessResu lts(Int32 hr)

at System.Data.Ole Db.OleDbDataRea der.GetRowHandl es()

at System.Data.Ole Db.OleDbDataRea der.ReadRowset( )

at System.Data.Ole Db.OleDbDataRea der.Read()

at System.Data.Ole Db.OleDbDataRea der.HasRowsRead ()

at System.Data.Ole Db.OleDbDataRea der.NextResult( )

at System.Data.Ole Db.OleDbCommand .ExecuteReaderI nternal(Command Behavior behavior, String method)

at System.Data.Ole Db.OleDbCommand .ExecuteReader( CommandBehavior behavior)

at System.Data.Ole Db.OleDbCommand .System.Data.ID bCommand.Execut eReader(Command Behavior behavior)

at System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable)

at DreamweaverCtrl s.DataSet.DoIni t()<hr>System.E xception: The DefaultView was requested but no tables yet exist.

at DreamweaverCtrl s.DataSet.get_D efaultView()<hr >

----------------------- web.config -----------------------------------------------------
<configuration> <appSettings><a dd key="CONNECTION _HANDLER_app_Co nn" value="default_ oledb.htm" /><add key="CONNECTION _STRING_app_Con n" value="Provider =SQLOLEDB.1;Pas sword=password; User ID=username;Ini tial Catalog=dbname; Data Source=123.123. 123.123" /><add key="CONNECTION _DATABASETYPE_a pp_Conn" value="OleDb" /><add key="CONNECTION _SCHEMA_app_Con n" value="" /><add key="CONNECTION _CATALOG_app_Co nn" value="" /></appSettings></configuration>
Nov 17 '05 #1
3 1918
"GotdotNet" <nv****@yahoo.c om> wrote in message
news:79******** *************** ***********@mic rosoft.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.Sql Client provider, instead of OleDb, i.e.
instead of the OleDbDataAdapte r, 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.ExecuteNonQ uery();
}
catch (SqlException E)
{
System.Text.Str ingBuilder MyErr = new System.Text.Str ingBuilder();
MyErr.Append("A Data exception occured\r\n");
MyErr.Append("S ource: " + E.Source);
MyErr.Append("\ r\nMessage:" + E.Message);
if (E.InnerExcepti on != null)
{
MyErr.Append("\ r\nInner: " + E.InnerExceptio n.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="te xt/html" debug="false"%> <%@ Register TagPrefix="MM" Namespace="Drea mweaverCtrls" Assembly="Dream weaverCtrls,ver sion=1.0.0.0,pu blicKeyToken=83 6f606ede05d46a, culture=neutral " %><MM:DataSet
runat="Server"
id="GETStuff"
IsStoredProcedu re="true"
CreateDataSet=" true"
ConnectionStrin g='<%# System.Configur ation.Configura tionSettings.Ap pSettings("CONN ECTION_STRING_a pp_Conn") %>'
DatabaseType='< %# System.Configur ation.Configura tionSettings.Ap pSettings("CONN ECTION_DATABASE TYPE_app_Conn") %>'
CommandText="db o._RunSProc"
Debug="true"
<Parameters><P arameter Name="@id" Value='<%# IIf((Request.Qu eryString("id") <> Nothing), Request.QuerySt ring("id"), "") %>' Type="Integer" Direction="Inpu t" /><Parameter Name="@string" Value='<%# "Take this" %>' Type="VarChar" Direction="Inpu t" /></Parameters></MM:DataSet><MM: PageBind runat="server" PostBackBind="t rue" /><html><head><t itle>Test</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><%

server.Execute( GETStuff.FieldV alue("NavTopHTM L", Container))
%><ASP:Repeate r runat="server" DataSource='<%# GETStuff.Defaul tView %>'><ItemTempla te><a href="goto.aspx ?id=<%# GETStuff.FieldV alue("id", Container) %>"><%# GETStuff.FieldV alue("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="te xt/html" debug="false"%> <%@ Register TagPrefix="MM" Namespace="Drea mweaverCtrls" assembly="Dream weaverCtrls,ver sion=1.0.0.0,pu blicKeyToken=83 6f606ede05d46a, culture=neutral " %><MM:DataSet
runat="Server"
id="GETStuff"
IsStoredProcedu re="true"
CreateDataSet=" true"
ConnectionStrin g='<%# System.Configur ation.Configura tionSettings.Ap pSettings("CONN ECTION_STRING_a pp_Conn") %>'
DatabaseType='< %# System.Configur ation.Configura tionSettings.Ap pSettings("CONN ECTION_DATABASE TYPE_app_Conn")
%>'
CommandText="db o._RunSProc"
Debug="true"><P arameters><Para meter Name="@id" Value='<%# IIf((Request.Qu eryString("id") <> Nothing), Request.QuerySt ring("id"), "") %>' Type="Integer" Direction="Inpu t" /><Parameter Name="@string" Value='<%# "Take this" %>' Type="VarChar" Direction="Inpu t" /></Parameters></MM:DataSet><MM: PageBind runat="server" PostBackBind="t rue" /><html><head><t itle>Test</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><% server.Execute( GETStuff.FieldV alue("NavTopHTM L", Container)) %><ASP:Repeate r runat="server" DataSource='<%# GETStuff.Defaul tView %>'><ItemTempla te><a href="goto.aspx ?id=<%# GETStuff.FieldV alue("id", Container) %>"><%# GETStuff.FieldV alue("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
2530
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. ASP=/TestDotNet/AdoNet.aspx System.Data.OleDb.OleDbException: Unspecified error at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) at System.Data.OleDb.OleDbConnection.InitializeProvider() at System.Data.OleDb.OleDbConnection.Open()...
4
2852
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 intranet .asp program works, but as soon as it tries to access the database for normal users, it gives us an "unspecified error" and that it can't access the data base. As the administrator, I found my access was relatively stable. Anyone else...
1
662
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 problem. I know that when you install .net it is supposed to create a directory under documents and settings with the name of the server in my case it should be "\documents and settings\arete1\aspnet\local settings\temp" this was not created in several...
9
3198
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 questions are below... "David Good" wrote: > We have a network running both Win2k and Win2k3 webservers and our web sites > reside on a UNC network share that happens to be a Network Appliance NAS.
1
3221
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 given me proper access to the temporary directory c:/Windows/Microsoft.NET/Framework/V1.1.4322/Temporary ASP.NET Files/root/...." I believe it also demonstrates that I have access to c:/documents and settings/xyz/aspnet/local settings/ ...
7
22848
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 following error is generated. Any help would be appreciated. Thanks, Jim Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information
0
992
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 impersonate my ftp account which can read/write/delete files in the directory. I already have access to C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root
10
3710
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 Error in '/QuickStartv20' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file
0
1233
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) When I load some of the pages, it warns me like that: -----------------------------------------------
0
8380
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8816
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8497
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8598
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5627
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2721
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1928
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1598
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.