Support for VS2010 Classic ASP

With Visual Studio 2005, 2008, and 2010, you can debug a classic ASP by attaching a debugger to the w3wp.exe process. In 2005 and 2008, it is very difficult and often happens with errors, but it works well in 2010. The only problem is that, as far as I can tell, VS2010 does not support classic ASP code allocation or code completion. HTML looks great, but any classic ASP code is just black and white.

I can’t add <%@Script="VBScript"%> to the top of each page due to the architecture of the site and even after testing does nothing.

This whole problem is very confusing because with Visual Studio 2010 Express, the above-mentioned classic ASP support goes out of the box (minus debugging).

I can highlight alternating HTML and VBScript by switching between the following modes (but never both). I tried the following: Tools> Options> Text editor> File extensions> Adding the "ASP" extension with the following editors:

  • Automatic Editor Selector (XML) - Retrieves HTML on the right, but not blocks on ASP
  • Microsoft Visual Basic - ASP receives mostly rights (many underlined errors, even if the code conforms to the ASP standard), but no HTML highlighting
  • Script Editor - HTML, but not ASP
  • Web Form Editor - HTML, but not ASP

I reviewed the Editor extension , my thoughts are to try to mix markup for the web form editor and Microsoft Visual Basic editor, but I'm not sure if this is a reasonable move.

How can I get code highlighting and intellisense for classic ASP in Visual Studio 2010?

+6
source share
1 answer

Solved!

TL dr: Install Service Pack 1 (SP1)

Go through the troubleshooting process:

  • Remote VS2010 Ultimate completely on the machine with problems
  • Installed VS2010 Professional in accordance with the comments. This did not resolve the issue. The same problems as before.
  • On a new computer with a fresh install of Windows 7, I installed VS2010 Professional.
  • This time he asked me to install Service Pack 1 after installation (Http://www.microsoft.com/download/en/confirmation.aspx?id=23691).
  • I went into asp-code, and it was a selection and code, offering perfectly. Debugging worked flawlessly as well.
  • I returned to the original (faulty) computer and manually installed SP1, and the problem disappeared away.
+1
source

Source: https://habr.com/ru/post/906044/


All Articles