473,473 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problems after restarting IIS ????


I have a curious problem with IIS, ASP and ASP.NET. It
seems once I run an ASPX page on the server and then do an
IIS restart it screws up ADODB in ASP.

I have a simple ASP page "simpleconn.asp" which creates an
ADODB Connection to an Access database. This page executes
fine and creates the connection no problem at all.

I also have an ASPX page which simply does a
response.write which also runs fine. After I have executed
the aspx page everything works until I restart IIS
Services. After doing this the "simpleconn.asp" page no
longer creates a connection and I get an "unspecified
error" returned. Nothing resolves this problem until the
WHOLE server is REBOOTED.

The server is running Windows 2000 Server (SP4) with MDAC
2.7. It has the lastest .NET Framework installed.

I have included the code for the simpleconn.asp page. The
problem occurs when I run any ASPX page on the server or
even access an ASP.NET Webservice ???

Any thoughts or comments would be most appreciated as I
have wasted a great deal of time on this already.

Curiously I cannot replicate the bug on my own machine
running windows 2000 Professional ??

Kind regards
Mark Feather
simpleconn.asp
-----------------

Dim my_conn, strconnString

strConnString = "Provider = Microsoft.Jet.OLEDB.4.0;Data
Source=c:\datamanagementcomp\webtest\dbs\developd. mdb"

set my_Conn = Server.CreateObject("ADODB.Connection")

my_Conn.Open strConnString

if my_conn.Errors.Count > 0 then
Response.write "CONNECTION FAILED " &
my_conn.errors(0).Description
else
Response.write "CONNECTION OPENED"
end if

my_Conn.close

set my_Conn = nothing
Nov 17 '05 #1
0 1053

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

Similar topics

0
by: Andrew | last post by:
Hi guys, Has anyone else had trouble with the latest releases of PHP in IIS (using the ISAPI module)? I updated our copies of PHP recently and very soon IIS became very unstable with the...
0
by: Martin Gill | last post by:
I am a novice user of MySQL so please excuse my ignorance. I recently installed MySQL and have a third party tool using it to update data in a database. Recently it started creating erorr...
3
by: zeedan | last post by:
Hi, I appologise if I'm not posting this to the correct group, but I'm having problems starting MySQL server. I need it in order to post a websurvey for a research project I'm doing for a college...
8
by: Leon Mergen | last post by:
Hello, I'm currently trying to fix a somewhat weird map problem, and after 4 hours of debugging I'm having trouble convincing myself that it really is a problem with my code, rather than some...
0
by: LJ | last post by:
I have been getting this message and can't resolve the problem. I have checked the AntiVirus software and added the application directory to the exculsion list. The application is on a web farm,...
4
by: Hari Koduru | last post by:
Hi All, I am getting the following exception in an ASP.NET application. Exception Details: System.InvalidOperationException: Application is restarting. I have been to the following Support...
2
by: njr | last post by:
Having copied a number of folders from my development PC (XP) to a development server (W2003) and installed them under wwwroot (and created applications in IIS) I have problems when I include the...
13
by: Christopher Cashell | last post by:
Yesterday, while attempting to access a database, I received errors saying that the database was innaccessible. After investigating a little, I found the following in the PostgreSQL log files: ...
4
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... Following the samples online, we implemented a windows service in .Net. Like most services, there's a worker thread actually doing stuff in the background. The problem we've run into is...
2
by: SolidRage | last post by:
Every day my computer restarting automaticaly after vista installation!!! I have all latest updates installed.... My old WinXP was really better.... Do you have problems with Vista too? :(
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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,...
1
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.