How to allow classic ASP pages in Visual Studio 2005 development server?

J

Jude

IIS on my local machine serves both ASP and ASP.NET pages fine but
when I debug using the built in Development Server that comes with
Visual Studio 2005 I get the following error when I try to cross to a
classic ASP page:

Server Error in '/myapp' Application.
--------------------------------------------------------------------------------

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: /myapp/home.asp


I know how to configure IIS to do them, but how do I configure the
Visual Studio 2005 Development Server to allow .asp files?
 
M

Mark Fitzpatrick

I don't think you can. The development server that comes with VS is, I
believe, an modified version of the Cassini web server that MS made
available. Essentially, it was only for running ASP.net pages and was really
just a lightweight test server for users who had XP Home and couldn't
install IIS (since it doesn't come with XP Home).
 
J

John Q. Rocket

IIS on my local machine serves both ASP and ASP.NET pages fine but
when I debug using the built in Development Server that comes with
Visual Studio 2005 I get the following error when I try to cross to a
classic ASP page:

Server Error in '/myapp' Application.
---------------------------------------------------------------------------­-----

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: /myapp/home.asp

I know how to configure IIS to do them, but how do I configure the
Visual Studio 2005 Development Server to allow .asp files?

I believe Mark's got it correct. As Mark mentioned you XP-Home
doesn't come with IIS. However, if you're running XP-Professional you
can install IIS and turn the web server on which can then render
Classic ASP pages. Your other option might be to make slight changes
to the Classic ASP pages and run them under ASP in compatibility
mode. To do this you'd put a <%@ Page Language="vb" aspcompat="true">
page directive at the top of the ASPX page. Check this link out. I
did this once to buy myself some time, worked fine.

http://authors.aspalliance.com/anjum/ASPMigration.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top