Our database has just crashed so need to take down IIS - is there anyway to just have a catch all, so whatever page a user visits will display an error message, as opposed to just stopping the service and having the 'Unable to connect' error.
Thanks
If you stick a file called app_offline.htm in the root of your web application, IIS will shut-down the application, unload the application domain from the server, and stop processing any new incoming requests for that application.
It will then simply return the contents of the app_offline.htm file to anyone making requests to your application giving you the chance to send back an informative message.
Related
Recently I started getting The connection was reset. error message (error code is ERR_CONNECTION_RESET) when I open one of my websites. This has nothing to do with application(node.js) level afaik as no changes or deploys were made in the application. To add to this, there were no error logs so I am assuming the request did not even receive the node app. The website is hosted on godaddy and its backend is a elastic beanstalk application. How do I fix this? On the web browser, in the second attempt it automatically loads correctly. But in a iframe which embeds my website, this has become a nasty issue as the browser does not even retry. I did the DNS analysis using dig command and all that but could not find anything relevant. Interesting part is this only happens after some interval (it does not happen continuously). On reload it works without fail.
I have a user's website giving an error in a global.asa file but it does not exist in their web root. It looks like the account has been hacked as it's giving an error about not connecting to a server, and at the same time I see the firewall block outbound connection requests.
msxml3.dll error '80072efd'
A connection with the server could not be established
/LM/W3SVC/6510/ROOT/global.asa, line 66
I've deleted the IIS instance and had the control panel recreate it, but the issue still exists. I've even created a dummy asp file which only displays some text and it happens.
I'm at a loss where this could be being picked up and looking for suggestions. Where might this be set?
I've had the same problem on a w2k3 server (iis6) with many sites, where just one had the fake global.asa;
I've not still found cause but a workaround solution, for me, has been:
open MMC Console (IIS manager)
stop IIS
double click on Web Sites (confirm reload offline configuration)
under every site delete "ghost" global.asa (that you don't find under phisical websites folder)
start IIS
the linux-guy here has a question about IIS v6.
The case is, that i have a site running, when i do some specific tasks on this site ( Like deleting a specific item, three times in a row) the site will break, and a completely blank page will appear. Checking the response headers, i noticed that the server sends a "403 Forbidden: IP address of the client has been rejected."
Through a proxy, i can connect just fine.
Checking the site-options in the IIS manager, shows me that my IP is not blocked globally, its something thats just happening.
Where can i check for this? It happens automatically and the block ends after about 8-12 minutes, every time?
best regards.
Jonas
do you have access to IIS?
i assume blocking occure on web site side (inside ASP code), not in IIS.
please check IIS console, and make sure that there are no blocked IP's. If it's true, you should find database/table or some config file, where stored all blocked IP's. After that, you should get able to find ASP code, which is responsable for blocking....
you also could try make quick search inside all ASP pages for text like: "REMOTE_ADDR" and ".ServerVariables"
We're running ASP.Net (1.1) on a server with Windows Server 2003 R2 (Service Pack 2). We have an application (http://newserver.yourdomain.com/someapp) that performs a relatively basic process of taking the user-entered input and populates the data into the database. If there is a problem with the INSERT/UPDATE, a TRY...CATCH block will trap the error and redirect the user to a centralized "Error Handler" application (http://newserver.yourdomain.com/ErrorHandler) that displays a more user-friendly error screen and log all the relevant information. The Error Handler resides on the same server and runs ASP.Net (1.1) as well.
This has been working for years, but we're upgrading the servers and replicating all the same applications from the old server (http://oldserver.yourdomain.com) to the new server. For some reason, now when the application is attempting to redirect the user to the Error handler (via Response.Redirect), we're running into a "The page cannot be displayed" error (aka "Action Cancelled" error). I assume it's a configuration setting, but I can't think of what it might be.
To make things stranger, this happens in IE6 and IE7, but not in Chrome 12. Also, we can avigate directly the Error Handler URL without a problem. The issue seems to center around the need to redirect to that location.
Also, if I set up the old server (http://oldserver.yourdomain.com) to point to the new Error Handler (http://newserver.yourdomain.com/ErrorHandler), it works fine. The redirection seems to only be an issue on this new server.
Can you think of what the issue(s) might be?
We've just set up a new dedicated server at hostgator, running Windows 2008 Server, IIS7 and ColdFusion 8 ENT.
On browsing the homepage, sometimes the site works, sometimes, part of the site runs and I can see a 403 error in Firebug. At other times, I only get an IIS error page saying:
"403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied."
The site is http://www.asia-buy.com. It might run first time, but if you refresh it a few times, you'll probably encounter the problem.
There is a lot of ajax and JSON stuff going on under the hood and I'm wondering if that has any bearing on the problem.
Would appreciate advice from anyone who may have solved a similar issue in the past.
Resolved: Hostgator says this is actually a security setting in IIS to attempt to prevent DDOS attacks on the website. A a developer, I use CTRL-F5 a lot. A normal user would not.
Full error:
HTTP Error 403.502 - Forbidden
The IP address from which you are browsing is not permitted to access the requested Web site because it has made too many requests over short period of time.
Open IIS Manager.
Go to your website.
Go to Features/IP Address and Domain Restrictions/Dynamic IP Restriction Settings
Uncheck the boxes, or change the values, as needed