473,394 Members | 1,693 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,394 software developers and data experts.

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 887

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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
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...

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.