Why StaticFile handler running instead of Custom handler

258 views Asked by At

I am migrating a legacy web application to iis 10. Site is mostly written in classic asp and asp code is running fine for files with .asp extension. However, there are some pages in the site are saved with the .uasp extension which is throwing the error:

enter image description here

To resolve this, I added a handler mapping in the iis

enter image description here

But iis is still throwing the same error from the "StaticFile" handler. My question is why my handler is not recognized? Any suggestion/help will be appreciated.

1

There are 1 answers

0
easleyfixed On

The error is HTTP VERB, so we should focus on that angle. Here is an article on stackoverflow talking about this error:

The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used

If you read that link, I think its the 2nd option situation. You can POST or GET data, and you use POST with a form, and GET from a url string. You are using the later with a url string like showfile.uasp?name=bob , so check your code and make sure that GET is used and not POST.