I have an older classic ASP website that I am migrating over to IIS7.5. I don\'t feel like installing classic ASP on the server, and so I just want the .asp files to be treated
It won't work. ASP and ASP.NET are different things.
ASP.NET doesn't support VBScript, for instance. It also doesn't support includes.
I Think ASP is not enabled by defualt in the IIS7, so you might have to enable it by using windows control panel Control:
Panel/Programs/Turn On/Off Windows Features/Internet Information Services/WorldWideWeb Services/ Application Development Features / [ASP][ISAPI FILTERS] etc...
Then choose all features you need.
Cheers
That's not going to work. Aspnet_isapi.DLL, which handles executing ASP.NET applications, doesn't understand classic ASP, and will try to parse the classic VBScript code as .NET VBScript.
The only way this is feasible is if you have no (and I mean ABSOLUTELY NONE) classic ASP code in your .ASP pages.
If that is the case, you can map the .ASP extension to aspnet_isapi in IIS manager.
C:\Windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll
(assuming you're using ASP.NET 2.x).Again, if you have any code in your .asp pages, this will cause a glorious, technicolor failure for every .ASP page.
Another option is to use a rewrite engine (we use ISAPI Rewrite) to change the file extension of incoming requests from from .asp to .aspx.
Why don't you want to install classic ASP on the server? It works just fine in parallel with ASP.NET.
edit
It's actually called "handler mappings." See image above.
You must follow the start menu as given below to get VS2010 command prompt.
Start -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools -> Visual Sutdio Command Prompt(2010)
Right Click on the Visual Studio Command Prompt (2010) and select Run as Administrator in case of Windows 7 and Vista
then apply aspnet_regiis.exe -i