Solved

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

Posted on 2007-03-19
2
918 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

617 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