Saturday, March 24, 2012

This type of page is not served.

I am beginning to create my first .net website and am running into a problem. Google provided little help. I tried to access an .asp file within one of my subfolders and am receiving the following error:


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.

Is it possible to change the web.config or machine.config file to allow access to an .asp page? I'm new to .Net 2.0.

Thanks!

Hi,

do you use windows server 2003 in combination with IIS6? If so you need to know that IIS6, by default, has the settings set to off for serving ASP.NET or classic ASP pages.

Besides that, ASP.NET webforms need to have the extension .aspx, not .asp. This is needed to have IIS use the correct ISAPI filters.

Grz, Kris.


Yes, I'm on a win2003 server with IIS 6. What I'm basically trying to accomplish is create a 2.0 login system to replace our current system. We currently have a lot of sites written in classic asp and a few newer sites written in .NET 2.0. So what I have done is set up a test and everything works well, until I try to access an .asp page inside of one of our sites. I know that webforms need the .aspx extension, but am unsure of how to configure ISAPI or httphandlers to allow the execution of .asp pages. A general diagram of our system is below:

Our_Portal -- main folder, has 2.0 login features with links to the following subfolders/sites

Site_A -- .NET 2.0 site

Site_B -- classic ASP

Site_C -- classic ASP

When I try to access sites B and C, I get the "cannot serve pages" error. Is this more clear?

0 comments:

Post a Comment