We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

Trouble with Classic ASP on Windows 10RSS

3 replies

Last post Apr 18, 2021 03:32 AM by Geeksm

  • Trouble with Classic ASP on Windows 10

    Mar 10, 2021 07:26 PM|DJenson|LINK

    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.

  • Re: Trouble with Classic ASP on Windows 10

    Mar 11, 2021 01:09 AM|lextm|LINK

    DJenson

    <% 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.

    Lex Li
    Want to have a chat on the issues you meet? Book an appointment at https://buy.stripe.com/cN24ia0yi7sAdIA7sv
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Trouble with Classic ASP on Windows 10

    Apr 18, 2021 03:28 AM|Geeksm|LINK

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

    https://youtu.be/5nlZeIYasMI

  • Re: Trouble with Classic ASP on Windows 10

    Apr 18, 2021 03:32 AM|Geeksm|LINK

    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