views:

32

answers:

2

I'm upgrading a classic ASP application. This app has a few old unmanaged DLL calls and some complicated logic inside the asp page/function.

Is it possible for me to put the .asp file into the ASP.NET MVC app and then load the result using $.get?

I try putting the .asp file straight into the Scripts or Models folder but I couldn't load the .asp file when I try to run it straight from the server:

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. 

Any ideas on how to achieve this funcationality?

A: 

Hey,

You could setup an ignoreroute so that the original processing on the file exists, though I don't know if that will help with ASP extension, that's what I'm not sure of. But it's worth a shot, and if you have these files in the same folder, that helps with setting up the ignore route. More info at:

Brian
A: 

It sounds to me like your trying to run it by launching the site from Visual Studio to test. This wont work as VS cannot serve Classic ASP pages. You have to hook it up to IIS on your machine to make it work. Or you don't have the ability to run server scripts configured correctly in IIS if it is attached to IIS.

Tim Meers