Solved

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

Posted on 2007-03-19
2
912 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
ID: 18750219
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
ID: 20024424
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 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