1

I have just set up IIS on Win 10.

I have a page called hello.asp:

<%@ language="vbscript"%>
<html><body>
<%
response.write("Hello world! - VBScript in IIS")
%>
</body></html>

What do I need to do in the IIS Manager to get this page to work?

When I browse to the page I get:

HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

I don't understand why this handling is not automatically configured when you install IIS.

CJ7
  • 22,579
  • 65
  • 193
  • 321
  • 1
    It's not enabled by default because of security reasons. The IIS server comes 'pre-secured' now. Does this help: https://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis – Nick.Mc Jan 18 '17 at 04:35
  • 1
    I hadn't turned on ASP in the "Turn Windows features on or off". Once I did this it worked. – CJ7 Jan 18 '17 at 04:37
  • @Nick.McDermaid - You should offer that comment as an answer, as it solved the problem. – John Jan 18 '17 at 12:19
  • Possible duplicate of [How to enable ASP classic in IIS7.5](http://stackoverflow.com/questions/9072048/how-to-enable-asp-classic-in-iis7-5) – user692942 Jan 18 '17 at 14:59
  • @john What they should do is search first, realise this isn't the first time someone has asked about Classic ASP setup on IIS and flagged it as a duplicate. – user692942 Jan 18 '17 at 15:00

1 Answers1

1

It's not enabled by default because of security reasons. The IIS server comes 'pre-secured' now. Does this help

https://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis

Summary:

Classic ASP Not Installed by Default on IIS 7.0 and above

When adding IIS using the server roles and features wizard, make sure you tick 'asp' and 'isapi extensions'

Nick.Mc
  • 18,304
  • 6
  • 61
  • 91