Solved

IISRESET from web page

Posted on 2014-11-05
14
136 Views
Last Modified: 2015-04-26
Hi Experts,
It happens quite often that my web page displays the error message below:

Provider error '8000ffff'
Catastrophic failure

The only way I can fix this is by resetting the IIS with the following command:
IISRESET

I am using Classic ASP.
I was wondering if the IIS could be reset automatically from the web page whenever the Catastrophic failure error appears.

Thank you for your help.
0
Comment
Question by:romsom
  • 5
  • 3
  • 2
  • +1
14 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 40424427
What type of connection string  and database are you using?  What time of info are you getting (just text or images/blobs??  

Is there a specific place in your code?  Just one page or random?


http://classicasp.aspfaq.com/general/why-do-i-get-8000ffff/8002802b-errors.html
0
 

Author Comment

by:romsom
ID: 40424441
I get this error only when I return values from Teradata.
The query is quite complex and sometimes it causes the page time out. It's supposed to return real time data from different Data Warehouse tables.
This is the  connection string I'm using:
DSN=Teradata;DRIVER={Teradata};UID=ABCDEF;PWD=pw123456;Persist Security Info=True;
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 40424451
While it may be possible to do the IISReset from within the codebehind, it probably makes more sense to fix the problem.

As previously noted, is there any pattern to this behavior?  Is it daily?  Weekly?  Random?

Are there tasks being performed when the problem occurs?  Hitting a database?  Accessing an SSL page?  Etc...

What version of IIS are you running on?
0
 
LVL 34

Assisted Solution

by:Paul MacDonald
Paul MacDonald earned 250 total points
ID: 40424458
Perhaps if you specified a timeout for the query?

DSN=Teradata;DRIVER={Teradata};UID=ABCDEF;PWD=pw123456;Persist Security Info=True; default command timeout=60; Connection Timeout=60;

...or something like that?
0
 

Author Comment

by:romsom
ID: 40424482
I've tried to increase the timeout but that didn't change the situation.
I get the Catastrophic Failure message about twice a month, but ironically almost always on my days off.
The page where the error message appears returns data from a Teradata database, and I guess it happens when too many users are querying the database at the same time.
I don't have codebehind, because I'm using Classic ASP. I am just curious if there is a piece of code that would automatically reset the IIS without me having to remote into the server and type IISRESET into the command prompt.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 52

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 125 total points
ID: 40424511
What about experimenting without using a DSN connection.

https://www.connectionstrings.com/ole-db-provider-for-teradata/
Provider=TDOLEDB;Data Source=myServerAddress;Persist Security Info=True;
User ID=myUsername;Password=myPassword;Session Mode=ANSI;

Open in new window

0
 

Author Comment

by:romsom
ID: 40424554
I've tried the connections string but this is the error I get:

ADODB.Connection error '800a0e7a'

Provider cannot be found. It may not be properly installed.
0
 
LVL 34

Assisted Solution

by:Paul MacDonald
Paul MacDonald earned 250 total points
ID: 40424729
I don't understand why an IISReset would fix a data access issue, other than to clear the error on the page itself.  A "Back" button could do that...

That said, can you try to trap the exception and re-run the query if the problem happens?

(Codebehind also refers to code inline...at least in this shop)
0
 
LVL 32

Accepted Solution

by:
Big Monty earned 125 total points
ID: 40424737
to perform an actual IISRESET from an asp page, have your link or whatever go to an asp page with the following code in it:

<%
Server.CreateObject("WSCript.Shell").Run "cmd.exe /c iisreset /reboot"
%>

Open in new window


you may want to put it in its own folder with Anonymous access disabled if your site is a public site, otherwise anyone would be able to reset the site, and I'm guessing you don't want that :)

I agree with the others in this post, this is just a band aid to the problem, best to find the actual issue causing the problem....
0
 

Author Comment

by:romsom
ID: 40424779
Thank you very much for your help and advise.
Fixing the problem makes more sense than just rebooting the server when it happens.
I've found some connections left open, maybe that's what caused the "Catastrophic Failure".
0
 

Author Comment

by:romsom
ID: 40424784
I'm sorry; I meant to award the points equally for the three of you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
two-way Authentication ASP 3 80
Update Stored Procedure question 8 48
UTC (timezone) without using an API 16 39
ASP Focus problem 3 52
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now