Solved

.asp pages along side an asp.net website (visual studio problem?)

Posted on 2007-03-19
2
901 Views
Last Modified: 2013-11-26
Is it possible to have pages with the classic asp extension inside of an asp.net 2.0 website?  I would like a portion of a website I'm developing have the .asp extension.  So for example a folder with pages in .asp AND the rest of the site in .aspx pages.  I'm using visual studio 2005 and am having trouble getting the website to read the .asp pages.  I'm get the error listed below and I'm not sure how to tell visual studio it's ok to use .asp pages.  If I'm not mistaken Visual Studio creates its own localhost for websites, so I'm not sure If I should make the appropriate changes in IIS or Visual Studio.  

Server Error in 'applicationname' Application: This type of page is not served.  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.  

0
Comment
Question by:deloused
2 Comments
 
LVL 34

Accepted Solution

by:
Dave_Dietz earned 500 total points
Comment Utility
Yes, you can have both ASP and ASPX pages in the same directory - they will not be aware of or interfere with each other.

The built in webserver in VS2005 is designed for use with ASP.Net and as such will not run classic ASP pages.  You will need to deploy this to an IIS based web server to run ASP pages properly.

Dave Dietz
0
 

Expert Comment

by:Edward Joell
Comment Utility
Is there any way to construct an application using VS 2005 so that you can run and view in browser  the ASP pages of the application as well as the ASP.Net pages like you could do in VS 2003?  Otherwise this inability will probably triple the time needed to make what would have been a minor upgrade to an exisiting production application relied on by DHS.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now