473,847 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Data.Ole Db.OleDbExcepti on: Unspecified error

I have a function residing in a module that is doing some file copy and
database query operations. This function is called from a regular form under
a System.Windows. Forms.Timer control. The problem is that sometimes it gives
an error - even when it is doing the same exact operations. It may fail on
the 20th tick event or the 100th. The file and data has no changes - so, it
is doing the same operations repeatedly. I'm wondering if anyone can look at
the error below and tell me where to start because I know that there is no
problem with the code to copy the files or to read/write to the database.
The error comes up during different points of the code execution in the
function - pretty random.

Error Message:

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.Data.Ole Db.OleDbExcepti on: Unspecified error

at System.Data.Ole Db.OleDbConnect ion.ProcessResu lts(Int32 hr)

at System.Data.Ole Db.OleDbConnect ion.InitializeP rovider()

at System.Data.Ole Db.OleDbConnect ion.Open()

at DominosUI_VBPro ject.mdlDatabas eConnection.Sta rtDBConnection( ) in
F:\Source Code\mdlDatabas eConnection.vb: line 26

at DominosUI_VBPro ject.mdlSoftwar eEventLog.fxLog DebugEvent(Stri ng
CprtEventDescri ption) in F:\Source Code\mdlSoftwar eEventLog.vb:li ne 28

at DominosUI_VBPro ject.mdlAutoPri ntPos1.AutoPrin tPos1() in F:\Source
Code\mdlAutoPri ntPos1.vb:line 264

at DominosUI_VBPro ject.MainForm.t imerAutomaticPr inting_Tick(Obj ect sender,
EventArgs e) in F:\Source Code\MainForm.v b:line 1474

at System.Windows. Forms.Timer.OnT ick(EventArgs e)

at System.Windows. Forms.Timer.Deb uggableCallback (IntPtr hWnd, Int32 msg,
IntPtr idEvent, IntPtr dwTime)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase: file:///c:/windows/microsoft.net/framework/v1.0.3705/mscorlib.dll

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

DominosUI_VBPro ject

Assembly Version: 1.0.1810.5631

Win32 Version: 1.0.1810.5631

CodeBase: file:///F:/Source Code/bin/DominosUI_VBPro ject.exe

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

System.Windows. Forms

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:
file:///c:/windows/assembly/gac/system.windows. forms/1.0.3300.0__b77 a5c56193
4e089/system.windows. forms.dll

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

System

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:
file:///c:/windows/assembly/gac/system/1.0.3300.0__b77 a5c561934e089/system.d
ll

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

System.Drawing

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.3300.0__b03 f5f7f11d50a3a/
system.drawing. dll

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

Microsoft.Visua lBasic

Assembly Version: 7.0.3300.0

Win32 Version: 7.00.9502

CodeBase:
file:///c:/windows/assembly/gac/microsoft.visua lbasic/7.0.3300.0__b03 f5f7f11
d50a3a/microsoft.visua lbasic.dll

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

System.Data

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:
file:///c:/windows/assembly/gac/system.data/1.0.3300.0__b77 a5c561934e089/sys
tem.data.dll

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

System.Enterpri seServices

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:
file:///c:/windows/assembly/gac/system.enterpri seservices/1.0.3300.0__b03 f5f
7f11d50a3a/system.enterpri seservices.dll

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

Accessibility

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.0

CodeBase:
file:///c:/windows/assembly/gac/accessibility/1.0.3300.0__b03 f5f7f11d50a3a/a
ccessibility.dl l

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

************** JIT Debugging **************

To enable just in time (JIT) debugging, the config file for this

application or machine (machine.config ) must have the

jitDebugging value set in the system.windows. forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuratio n>

<system.windows .forms jitDebugging="t rue" />

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the machine

rather than being handled by this dialog.

Nov 21 '05 #1
3 3240
Sarah,

Try stepping through the program to see what line exactly is throwing
the exception and then post that section of code here.

"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:sa******** @powertechcanad a.com:
I have a function residing in a module that is doing some file copy and
database query operations. This function is called from a regular form
under
a System.Windows. Forms.Timer control. The problem is that sometimes it
gives
an error - even when it is doing the same exact operations. It may fail
on
the 20th tick event or the 100th. The file and data has no changes - so,
it
is doing the same operations repeatedly. I'm wondering if anyone can look
at
the error below and tell me where to start because I know that there is
no
problem with the code to copy the files or to read/write to the
database.
The error comes up during different points of the code execution in the
function - pretty random.

Error Message:

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.Data.Ole Db.OleDbExcepti on: Unspecified error

at System.Data.Ole Db.OleDbConnect ion.ProcessResu lts(Int32 hr)

at System.Data.Ole Db.OleDbConnect ion.InitializeP rovider()

at System.Data.Ole Db.OleDbConnect ion.Open()

at DominosUI_VBPro ject.mdlDatabas eConnection.Sta rtDBConnection( ) in
F:\Source Code\mdlDatabas eConnection.vb: line 26

at DominosUI_VBPro ject.mdlSoftwar eEventLog.fxLog DebugEvent(Stri ng
CprtEventDescri ption) in F:\Source Code\mdlSoftwar eEventLog.vb:li ne 28

at DominosUI_VBPro ject.mdlAutoPri ntPos1.AutoPrin tPos1() in F:\Source
Code\mdlAutoPri ntPos1.vb:line 264

at DominosUI_VBPro ject.MainForm.t imerAutomaticPr inting_Tick(Obj ect
sender,
EventArgs e) in F:\Source Code\MainForm.v b:line 1474

at System.Windows. Forms.Timer.OnT ick(EventArgs e)

at System.Windows. Forms.Timer.Deb uggableCallback (IntPtr hWnd, Int32 msg,
IntPtr idEvent, IntPtr dwTime)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:
file:///c:/windows/microsoft.net/framework/v1.0.3705/mscorlib.dll

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

DominosUI_VBPro ject

Assembly Version: 1.0.1810.5631

Win32 Version: 1.0.1810.5631

CodeBase: file:///F:/Source Code/bin/DominosUI_VBPro ject.exe

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

System.Windows. Forms

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:

file:///c:/windows/assembly/gac/system.windows. forms/1.0.3300.0__b77 a5c56193

4e089/system.windows. forms.dll

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

System

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:

file:///c:/windows/assembly/gac/system/1.0.3300.0__b77 a5c561934e089/system.d

ll

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

System.Drawing

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:

file:///c:/windows/assembly/gac/system.drawing/1.0.3300.0__b03 f5f7f11d50a3a/

system.drawing. dll

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

Microsoft.Visua lBasic

Assembly Version: 7.0.3300.0

Win32 Version: 7.00.9502

CodeBase:

file:///c:/windows/assembly/gac/microsoft.visua lbasic/7.0.3300.0__b03 f5f7f11

d50a3a/microsoft.visua lbasic.dll

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

System.Data

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:

file:///c:/windows/assembly/gac/system.data/1.0.3300.0__b77 a5c561934e089/sys

tem.data.dll

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

System.Enterpri seServices

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:

file:///c:/windows/assembly/gac/system.enterpri seservices/1.0.3300.0__b03 f5f

7f11d50a3a/system.enterpri seservices.dll

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

Accessibility

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.0

CodeBase:

file:///c:/windows/assembly/gac/accessibility/1.0.3300.0__b03 f5f7f11d50a3a/a

ccessibility.dl l

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

************** JIT Debugging **************

To enable just in time (JIT) debugging, the config file for this

application or machine (machine.config ) must have the

jitDebugging value set in the system.windows. forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuratio n>

<system.windows .forms jitDebugging="t rue" />

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the machine

rather than being handled by this dialog.


Nov 21 '05 #2

Try stepping through the program to see what line exactly is throwing
the exception and then post that section of code here.


There are a lot of lines of code and the problem is that it does not happen
every time. Sometimes it executes the tick every 5secs successfully for
hours. So, I can't step through!

It is executing the same code again and again - i.e. all running through the
very same steps. It is connecting to an Access .mdb database file and only
fails once in a while. Same problem on multiple systems. CPU resource and
memory usage very low. Anything else to try?
Nov 21 '05 #3
Without code I can't help you to diagnose the problem.

"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:sa******** @powertechcanad a.com:

Try stepping through the program to see what line exactly is throwing
the exception and then post that section of code here.


There are a lot of lines of code and the problem is that it does not
happen
every time. Sometimes it executes the tick every 5secs successfully for
hours. So, I can't step through!

It is executing the same code again and again - i.e. all running through
the
very same steps. It is connecting to an Access .mdb database file and
only
fails once in a while. Same problem on multiple systems. CPU resource
and
memory usage very low. Anything else to try?


Nov 21 '05 #4

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

Similar topics

0
5296
by: silesius | last post by:
I've been using VS 2003 to develop a webapplication using C#. Today I exported the application to a remote webserver I begun experiencing problems. It's a simple application that retrieves some information from an Access database. It worked fine when I ran on my computer. I use a parameterized query to retrieve some customer specific information. Customer logs in, I store the username they log in with in the session state and on the...
1
6906
by: T8 | last post by:
I have a asp.net (framework 1.1) site interfacing against SQL 2000. It runs like a charm 99% of the time but once in a while I get the following "unspecified error". Sometimes it would resolve by itself (asp.net recycled?); it also can be solved by restarting IIS. Any ideas what cause(s) this to happen? System.Data.OleDb.OleDbException: Unspecified error at System.Data.OleDb.OleDbDataReader.ProcessResults(Int32 hr) at...
1
5173
by: Mark Sandfox | last post by:
I have wrote this code just about every way I can think of and I still get the above error. One thing I noticed was when I reduce the amount of fields to be updated to about half it works, but that is not a solution. The code is below and I give great thanks to anyone who can help me here. Note: I have "" the memo fields thinking that it may have been a special character issue but I still get the same resulting error message.
2
2854
by: Joe | last post by:
Hello All, I am trying to insert a record in the MS Access DB and for some reason I cannot get rid of error message, System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. And the line it shows in red is cmd.ExecuteNonQuery()
0
2791
by: silesius | last post by:
I've been using VS.NET 2003 to develop a webapplication using C#. Today I exported the application to another webserver I begun experiencing problems. It's a simple application that retrieves some information from an Access database. It worked fine when I ran on my home computer. I use a datagrid witha a dataset and a parameterized query to retrieve some customer specific information. Customer logs in, I store the username they log in...
3
8843
by: Brian Foree | last post by:
I am developing an ASP.NET application that uses Access 2000 as its backend, and have just started getting the following error on 2 ASP.NET pages that had been working until late last week (and I don't think I made any changes to either page other than changing the user control that creates the header). Server Error in '/myApp' Application. ---------------------------------------------------------------------------- ----
0
5686
by: NicK chlam via DotNetMonster.com | last post by:
this is the error i get System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at System.Data.Common.DbDataAdapter.Update(DataRow dataRows, DataTableMapping tableMapping) at System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable) at System.Data.Common.DbDataAdapter.Update(DataSet dataSet) at TryThis.Form1.save() in C:\Documents and Settings\Nick\My Documents\...
5
9666
by: petro | last post by:
Hello all, My asp.net web application works on my machine but I get the following error on our test web server, There is only one oracle home on the test server. Does anyone know how to resolve this error? Oracle error occurred, but error message could not be retrieved from Oracle. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the...
0
2973
by: dim mzeura via .NET 247 | last post by:
(Type your message here) -------------------------------- From: dim mzeura I have the same problem too. Please help! System.Data.OleDb.OleDbException: Syntax error (missing operator) in query expression ''\\crwfs1\projects12\AP-Wilbur\Analysis_NonQuantitative\Damages_Report\Backup_Exhibits_Leitzinger's_Damages_Calculations', '328424' )'. -----Here is my code----
1
5432
by: Joe | last post by:
Hello All, I am trying to insert a record in the MS Access DB and for some reason I cannot get rid of error message, System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. And the line it shows in red is cmd.ExecuteNonQuery()
0
9892
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
10995
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
10718
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
10347
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
9493
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7888
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5729
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...
0
5915
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4540
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

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.