500 Server Error on Classic ASP - Cannot get more details - iis

Windows 2008 R2 Standard x64, with IIS 7.5
When trying to load any ASP page (in IE right on the server), I instantly receive a "HTTP/1.1 500 Server Error". I have un-ticked "show friendly error messages" in IE.
IIS Logs show:
"ASP_0147|500_Server_Error".
Event Viewer->Application gives me:
Error: ASP will not serve requests because it could not perform the first request initialization..
And finally, the usually helpful Failed Request Tracing gives me 2 entries:
ASP_LOG_ERROR (Labeled as ERROR)
LineNumber:
ErorrCode: ASP 0147
Description: 500 Server Error
MODULE_SET_RESPONSE_ERROR_STATUS (Labeled as WARNING)
ModuleName: IsapiModule
Notification: 128
HttpStatus: 500
HttpReason: Server Error
HttpSubStatus: 0
ErrorCode: 0
ConfigExceptionInfo:
Notification: EXECUTE REQUEST HANDLER
ErrorCode: The operation completed successfully. (0x0)
I have double-checked all permissions and accounts. I have switched the app pool pipeline mode back and forth. And of course, I removed the IIS role from the server, and reinstalled that and the ASP Role Service about 5 times. I also have the Error Pages setting at the site level to show "Detailed Errors". I get the same errors for every ASP page, including a test one that is nothing but a response.write.
The real kicker is that I had this working when I came in this morning. I don't know if I clicked something in IIS by mistake or what. I have scoured the web for the past 8 hours. Experts -- what happened?

A few steps that you may try:
Ensure that there is no global.asa file of 0 bytes.
Try creating a new web site only for test and see if that is also not working. Then put a text file and try browsing it. If a text file comes up good, it would mean your IIS is okay. Now, try ASP file with <%=Now%> and see if you get the latest time. If this doesn't work, then it is related with permissions. In that case, use Process Monitor to find out any Access Denied and fix it. Check this blog post.
The download links have changed: http://technet.microsoft.com/en-us/sysinternals/bb896645
Note: in case you don't see any access denied, try this
Start ProcMon
IISRESET
Browse .asp page again and check for Access Denied.

Related

error 500 in asp page, Response_Buffer_Limit_Exceeded, find what operation is causing it

I have an asp page that should load data with a query. After an update in the database, that should have populated the table that the query touch, the web page is suddently giving error 500. I inherited this windows 2003 machine with IIS.
The error message in the IIS logs is:
2019-06-03 12:19:24 W3SVC1 10.100.0.3 GET /Intranet/Q-Monitor_costi_produzione.asp username=username&x=1670|0|ASP_0251_:_80004005|Response_Buffer_Limit_Exceeded 80 - 10.100.0.78 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+10.0;+WOW64;+Trident/7.0;+.NET4.0C;+.NET4.0E;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729;+.NET+CLR+3.5.30729) 500 0 0
Is there a way to see what portion of the page is giving this error?
As far as I know, the Response_Buffer_Limit_Exceeded measn the execution of the ASP page caused the Response Buffer to exceed its configured limit.
To solve this issue ,I suggest you could follow below steps:
1.Open the IIS manager and click the ASP feature:
2.Change the Response Buffering Limit to 64000000(almost 64mb)

GET request to IIS returns Microsoft-HttpApi/2.0

I've got 6 identical machines running IIS and Apache. Today one of them decided to just stop serving requests. I can access all of the webapps when I try from localhost/resource but when I try from url/resource I get a 404. I did a Get request against the machine that isn't working and I get this back:
Server: Microsoft-HTTPAPI/2.0
Connection: close
Compared to a working server:
Server: Microsoft-IIS/8.5
X-Powered-By: ASP.NET
Content-Type: text/html
Tried searching for this problem but came up with nothing, anyone got any idea's?
Windows has an HTTP service that manages calls to IIS and other HTTP enabled services on a windows machine. Either you need to configure it to handle your calls, or, in the case of WAMP or similar non-IIS-web-server-on-windows scenarios you may just need to turn it off.
When you see "Microsoft-HttpApi/2.0" returning error, such as 400 "bad URL" or "bad header", etc. the problem is most likely because the HTTP.sys service is intercepting your http request and terminating it because it does not meet with the minimum validation rules that are configured.
This configuration is found in the registry at HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters. In my case, it was choking because I had a RESTful call that had a 400 character segment in the url which was 160 characters more than the default value of 260, so I
added the registry parameter UrlSegmentMaxLength with a DWORD value of 512,
stopped the service using net stop http
started the service using net start http
I've run into these issues before and it is easy to troubleshoot but there is very little on the web that addresses it.
Try these links
"the underlying problem is that the client has sent a request to IIS that breaks one or more rules that HTTP.sys is enforcing"
enabling logging on HTTP.sys is described here
a list of the HTTP.sys parameters that you can control in the registry is found here.
A bit late, so put here for posterity ;-)
After trying all sorts of solutions found on the web, I almost gave up, but found this little nugget.
If the response's Server header returns Microsoft-HttpApi/2.0, it means that the HTTP.sys is being called, not IIS.
As a result, a lot of the workarounds will not work (URLScan, etc).
This worked however:
Open regedit
Navigate HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\
If DisableServerHeader doesn't exist, create it (DWORD 32bit) and give it a value of 2. If it does exist, and the value isn't 2, set it to 2.
Finally, restart the service by calling net stop http then net start http
src: WS/WCF: Remove Server Header
Set below registry flag to: 2
HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\DisableServerHeader
Setting this to 2 will ensure that self host WCF services no longer sends the SERVER header and thus ensure we are security compliant.
Please note that this disables ALL server headers.
The default value of 0 enables the header, and the value of 1 disables server header from DRIVER (http.sys), but app can still have headers.
For me I had to restart the server for the changes to take effect.
Hope this helps someone
I was working on our web app on a client's site and ran into an issue where the site root pages loaded, but the reports folder always returned a 404 for files that existed in the folder. The 404 page showed the .Net version of 2 when the application was set to 4, and a test of a non-existent page in the root returned a 404 page showing .Net 4.
I tried just http://localhost/reports and got back a Microsoft Reporting Services page. Not part of my application.
Be sure to check just the default document of the folder when a unexpected 404 comes up and the file exists.
This question and series of replies helped me get to the bottom of the related issue I was having. My issue centered around using just a subdomain to go to our server (e.g. typing "www/somepath" into the browser while on our corporate network), which had worked in the past on an older server, but no longer worked when the system was upgraded to a new server. I saw the unexpected Microsoft-HttpApi/2.0 string in the header when using the Chrome Devtools to inspect the Network traffic.
My HTTP.sys process was already logging, so I could verify that my traffic was going to that service and returning 404 NotFound status codes.
My resolution was to add a binding to the IIS site for the subdomain, making IIS respond instead of the HTTP.sys process, as described in this server fault article - https://serverfault.com/questions/479274/why-is-microsoft-httpapi-returning-404-to-my-network-switch
In my case, running Windows 10 Pro, it was the Windows MultiPoint Service.
By executing:
net stop wms
Port 80 was released.

Intermittent ColdFusion 404 Error Page, Sometimes it shows Connect Reset / Interrupted and sometimes it shows the error page

I have a strange issue with 404 pages loaded on our new site. We just moved our site from a ColdFusion 8 single instance setup to a ColdFusion 10 setup with 3 instances of ColdFusion running. This is running on IIS 7.5 with Windows Server 2008 R2. The IIS site has it's 404 error set to load /404.cfm which was a setting copied from the previous server setup.
The issue is that when you load a page that does not exist, some of the time the 404 page loads and sometimes you just get a connection reset error. For example, if you go to http://www.weblisters.com/doesnotexist and refresh repeatedly, you will see many times the connection is reset and some other times it will display the 'Sorry, Page Not Found' template.
I thought that this might be due to the multiple instances so I turned off 2 of the 3 instances so only 1 would be running and it did not affect the behavior.
Does anyone else have any ideas to what could cause this intermittent behavior?
EDIT: Here is a screen cast of what is happening on my end. http://screencast.com/t/0gD0lwZiRI
Had this same problem today. I found the comments by Charlie Arehart on this page to be most helpful: http://forums.adobe.com/message/4784188
Basically: after updating CF10, make sure to run the Web Connector as admin.

Getting "The page cannot be displayed" (Action cancelled) error when redirecting to another page

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?

Server - Windows 2K8/IIS7/ColdFusion throwing intermittent 403 errors

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

Resources