Error: The type of page you have requested is not served because it has been explicitly forbidden


I tried to run classic ASP with ASP.NET 2005.  In ASP.NET, I set the login.asp as Set As Start Page.  I checked IIS and it shows the following:

Directory Tab:
When connecting to this resource, the content should come from:
The designated directory: \Filter

The ASP.NET Tab:
Does not allow me to change the version from 2.0.4 to 2.0.5

When running ASP.NET, I get the following error message:
This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden.  The extension '.asp' may be incorrect.   Please review the URL below and make sure that it is spelled correctly.

Requested URL: /Filter/login.asp
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

Who is Participating?
Suggest you migrate asp to aspx page, read this,
and you can get "ASP to ASP.NEt Migration Assistant" to do the migration.

Try this:

under IIS Default Web Site or your folder properties, click on tab "Home Directory", then under "Application Configuration" there is a button "Configuration...". When you click on it, new window will popup with "Mappings" tab selected. In the listview you need to have ".asp" extension...and if not, click on button "Add" and find it in folder something like "C:\WINDOWS\system32\inetsrv\asp.dll"...and also select all verbs.
DeniseGoodheartAuthor Commented:
Hi All,

Many Thanks!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.