Wrox Programmer Forums
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 29th, 2004, 10:46 AM
Authorized User
 
Join Date: Jun 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default ADO Connection Crashes IIS

Hi All,

I have a dll which is referenced by an asp page to return data from a .dbf file.

I am creating a new adodb connection using a Foxpro connection string to read data from the .dbf file.

I create the new connection, then open it. The connection has a timeout of 5, I then check the connection state to see if it = 1.
as below

Dim fpDataconn As New ADODB.Connection
fpDataconn.ConnectionTimeout = 5
fpDataconn.Open mvarDBFoxpro, mvarDBFoxpro_Username, mvarDBFoxpro_Password
If fpDataconn.State = 1 Then 'connection open
'process
else
'write to error log
end if

This works OK for but occasionally (say twice a day) when the code reaches the line to open the connection it crashes IIS and causes the dllhost.exe to use 100% processor time.

I have a global error handler on the routine, but this does not get triggered as IIS crashes.

Can anybody please help as this is driving me crazy...

Thanks in advance.

Byron






Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclusive ADO Connection bsa Pro VB Databases 1 September 6th, 2004 07:16 AM
Exclusive ADO Connection bsa SQL Server 2000 2 August 24th, 2004 12:10 AM
ADO Connection String jmss66 Classic ASP Basics 3 February 3rd, 2004 12:10 PM
Global ADO Connection object DaveParry123 ADO.NET 0 October 7th, 2003 03:44 AM
ADO connection using password values GLCGLC Wrox Book Feedback 1 August 25th, 2003 10:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.