473,403 Members | 2,293 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,403 software developers and data experts.

System.Data.OleDb.OleDbException: 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.OleDb.OleDbException: Unspecified error

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

at System.Data.OleDb.OleDbConnection.InitializeProvid er()

at System.Data.OleDb.OleDbConnection.Open()

at DominosUI_VBProject.mdlDatabaseConnection.StartDBC onnection() in
F:\Source Code\mdlDatabaseConnection.vb:line 26

at DominosUI_VBProject.mdlSoftwareEventLog.fxLogDebug Event(String
CprtEventDescription) in F:\Source Code\mdlSoftwareEventLog.vb:line 28

at DominosUI_VBProject.mdlAutoPrintPos1.AutoPrintPos1 () in F:\Source
Code\mdlAutoPrintPos1.vb:line 264

at DominosUI_VBProject.MainForm.timerAutomaticPrintin g_Tick(Object sender,
EventArgs e) in F:\Source Code\MainForm.vb:line 1474

at System.Windows.Forms.Timer.OnTick(EventArgs e)

at System.Windows.Forms.Timer.DebuggableCallback(IntP tr 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_VBProject

Assembly Version: 1.0.1810.5631

Win32 Version: 1.0.1810.5631

CodeBase: file:///F:/Source Code/bin/DominosUI_VBProject.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__b77a5c56193
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__b77a5c561934e089/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__b03f5f7f11d50a3a/
system.drawing.dll

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

Microsoft.VisualBasic

Assembly Version: 7.0.3300.0

Win32 Version: 7.00.9502

CodeBase:
file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.3300.0__b03f5f7f11
d50a3a/microsoft.visualbasic.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__b77a5c561934e089/sys
tem.data.dll

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

System.EnterpriseServices

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:
file:///c:/windows/assembly/gac/system.enterpriseservices/1.0.3300.0__b03f5f
7f11d50a3a/system.enterpriseservices.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__b03f5f7f11d50a3a/a
ccessibility.dll

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

************** 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:

<configuration>

<system.windows.forms jitDebugging="true" />

</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 3207
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********@powertechcanada.com> wrote in message
news:sa********@powertechcanada.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.OleDb.OleDbException: Unspecified error

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

at System.Data.OleDb.OleDbConnection.InitializeProvid er()

at System.Data.OleDb.OleDbConnection.Open()

at DominosUI_VBProject.mdlDatabaseConnection.StartDBC onnection() in
F:\Source Code\mdlDatabaseConnection.vb:line 26

at DominosUI_VBProject.mdlSoftwareEventLog.fxLogDebug Event(String
CprtEventDescription) in F:\Source Code\mdlSoftwareEventLog.vb:line 28

at DominosUI_VBProject.mdlAutoPrintPos1.AutoPrintPos1 () in F:\Source
Code\mdlAutoPrintPos1.vb:line 264

at DominosUI_VBProject.MainForm.timerAutomaticPrintin g_Tick(Object
sender,
EventArgs e) in F:\Source Code\MainForm.vb:line 1474

at System.Windows.Forms.Timer.OnTick(EventArgs e)

at System.Windows.Forms.Timer.DebuggableCallback(IntP tr 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_VBProject

Assembly Version: 1.0.1810.5631

Win32 Version: 1.0.1810.5631

CodeBase: file:///F:/Source Code/bin/DominosUI_VBProject.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__b77a5c56193

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__b77a5c561934e089/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__b03f5f7f11d50a3a/

system.drawing.dll

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

Microsoft.VisualBasic

Assembly Version: 7.0.3300.0

Win32 Version: 7.00.9502

CodeBase:

file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.3300.0__b03f5f7f11

d50a3a/microsoft.visualbasic.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__b77a5c561934e089/sys

tem.data.dll

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

System.EnterpriseServices

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:

file:///c:/windows/assembly/gac/system.enterpriseservices/1.0.3300.0__b03f5f

7f11d50a3a/system.enterpriseservices.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__b03f5f7f11d50a3a/a

ccessibility.dll

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

************** 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:

<configuration>

<system.windows.forms jitDebugging="true" />

</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********@powertechcanada.com> wrote in message
news:sa********@powertechcanada.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
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...
1
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...
1
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...
2
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. ...
0
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...
3
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...
0
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...
5
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...
0
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...
1
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. ...
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: 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
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
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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,...
0
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...

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.