Solved

IISRESET from web page

Posted on 2014-11-05
14
131 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
Comment Utility
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
Comment Utility
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 33

Expert Comment

by:paulmacd
Comment Utility
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 33

Assisted Solution

by:paulmacd
paulmacd earned 250 total points
Comment Utility
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
Comment Utility
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 52

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 125 total points
Comment Utility
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
Comment Utility
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 33

Assisted Solution

by:paulmacd
paulmacd earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I'm sorry; I meant to award the points equally for the three of you.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
two-way Authentication ASP 3 69
Prevent URL from printing on header 5 60
CSS Question.. 3 72
syntax error on ASP ? 6 39
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

6 Experts available now in Live!

Get 1:1 Help Now