locked
Trouble with Classic ASP on Windows 10 RRS feed

  • Question

  • User-488419936 posted

    Installed IIS for Windows 10 and all appears to have gone well, created an application pool for Classic ASP, enabled 32 bit processing and set the .NET CLR version to No Managed Code. Loaded a test page with Response.Write and things seemed okay.

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hello ASP</title>
    </head>
    <body>
        <p>Default Site - Testing ASP Classic</p>
        <% Response.Write("<p>testing Response.Write Hello World</p>") %>
    </body>
    </html>
    

    Then I added a second Response.Write with the Date() function and I get an internal error. 

    <% Response.Write("<p>The current date is: “ + Date() + “</p>") %>

    Not really sure what to do next. Researched things on the web but no luck in getting this to work. Any help would be greatly appreciated. Thanks.

    Wednesday, March 10, 2021 7:26 PM

All replies

  • User690216013 posted

    <% Response.Write("<p>The current date is: “ + Date() + “</p>") %>

    The quote marks around Date() are not the simple ones (ASCII 0x22) expected by the ASP engine.

    Thursday, March 11, 2021 1:09 AM
  • User-813905534 posted

    Watch this video to fix errors or if you're not able to execute classic asp code in IIS 10

    https://youtu.be/5nlZeIYasMI

    Sunday, April 18, 2021 3:28 AM
  • User-813905534 posted

    Verify the installation and basic settings to be enabled on windows 10 machine from hereh https//youtu.be/xFkcJSXeCpo. Please let me know if you still facing any issue while executing ASP classic

    Sunday, April 18, 2021 3:32 AM