With Visual Studio 2005, 2008, and 2010 you can debug Classic ASP by attaching the debugger to the w3wp.exe process. This is very buggy and crashes often in 2005 and 2008, but works well in 2010. The only problem is that, as far as I can tell, VS2010 does not support Classic ASP code highlighting or code completion. HTML looks fine, but any Classic ASP code is just plain black-on-white.
I can't add <%@Script="VBScript"%>
to the top of each page because of the site architecture, and even after testing that - it doesn't do anything.
This whole issue is highly confusing because with Visual Studio 2010 Express, the aforementioned Classic ASP support comes out of the box (minus debugging).
I can get alternating HTML and VBScript highlighting by switching between the following modes (but never both). I have tried the following: Tools > Options > Text Editor > File Extensions > Adding an "ASP" extension with the following Editors:
I have considered extending the Editor, my thoughts being to try and mix the markup for the Web Form Editor and the Microsoft Visual Basic editor, but am unsure if this is a reasonable course of action.
How can I get code highlighting and intellisense for Classic ASP in Visual Studio 2010?
The use of ASP pages with Microsoft Internet Information Services (IIS) is currently supported in all supported versions of IIS. IIS is included in Windows operating systems.
Most versions of Visual Studio support editing Classic ASP code, couple of things to keep in mind though. Frontpage Server Extensions is no longer supported, the best approach is to use a mapped drive or better yet store the code in source control (Git, SVN etc.)
The answer is clearly "Yes, Classic ASP is supported, and No, it will not disappear". To convince you, with each new version of Windows Server, Microsoft indicates a total support of the ASP platform throughout the lifecycle of Windows Server, i.e. at least 10 years from its release.
Click Start, and then click Control Panel. In Control Panel, click Programs and Features, and then click Turn Windows Features on or off. Expand Internet Information Services, then World Wide Web Services, then Application Development Features. Select ASP, and then click OK.
Solved!
TL;dr: Install Service Pack 1
Walk you through the troubleshooting process:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With