IT Nota

  • Home
  • How To
  • .NET
  • WordPress
  • Contact

How to Set MS Edge for IE Compatibility Mode

If you need to access legacy websites designed for earlier versions of Internet Explorer, such as those using VBScript client (as opposed to JavaScript), you may encounter issues with the website rendering or functionality in modern browsers, including Microsoft Edge.

However, there is a solution in Microsoft Edge that can help resolve these issues. By using Internet Explorer compatibility mode, you can ensure that these legacy websites will display and function properly in Microsoft Edge.

Here are the steps to set Microsoft Edge to Internet Explorer compatibility mode:

Method 1

  1. Open Microsoft Edge and click on the three dots (…) in the upper-right corner to access the settings menu.

  2. Select the Settings option from the drop-down menu.

    Microsoft Edge settings

  3. Under Settings on the left pane, scroll down to the Default browser section.

  4. Click on the Add button under Internet Explorer mode pages and an Add a page window will open.

    Microsoft Edge settings - Add legacy site to Internet Explorer mode pages

  5. Enter the full URL (or IP address) of the legacy site and click the Add button, it will bring you back to the Settings window with the newly added site.

  6. Close the Settings page and restart Microsoft Edge.

Here’s a summary of the steps in a screenshot:

IE compatibility setting in MS Edge browser

After restarting Microsoft Edge, it will be set to use Internet Explorer compatibility mode and you should be able to access websites and web applications that require Internet Explorer.

Method 2

If you have Enterprise Mode turned on, you can just add the website URL to the file sites.xml:

  1. Go to C:\IEEnterpriseMode folder and look for a file called sites.xml.

  2. Open sites.xml with a text editor and you should see something similar to this:

    <site-list version="1">
      <created-by>
        <tool>EMIESiteListManager</tool>
        <version>12.0.0.0</version>
        <date-created>01/01/2023 00:24:49</date-created>
      </created-by>
      <site url="www.itnota.com">
        <compat-mode>IE11</compat-mode>
        <open-in>IE11</open-in>
      </site>
    </site-list>
    
  3. Just add all the sites you want to access with IE compatibility mode to the XML file like so:

    <site-list version="1">
      <created-by>
        <tool>EMIESiteListManager</tool>
        <version>12.0.0.0</version>
        <date-created>01/01/2023 00:24:49</date-created>
      </created-by>
      <site url="www.itnota.com">
        <compat-mode>IE11</compat-mode>
        <open-in>IE11</open-in>
      </site>
      <site url="www.mysite.com">
        <compat-mode>IE11</compat-mode>
        <open-in>IE11</open-in>
      </site>
    </site-list>
    
  4. Once completed, just save the file and exit.

You can try each method or both in conjunction. It shouldn’t affect one or the other. That’s all there is to it.

Further Reading

Enterprise Mode and the Enterprise Mode Site List
Turn on Enterprise Mode and use a site list

February 3, 2023 Filed Under: How To Tagged With: Classic ASP, Microsoft, Windows

How to Troubleshoot IIS 500 Error for ASP Websites

You try to load your classic ASP (Active Server Pages) website and all you can see in your browser is the all too familiar display of 500 Internal Server Error.

This page isn't working

WEBSITE is currently unable to handle this request

HTTP ERROR 500

IIS HTTP Error 500 Display on Chrome browser

What is 500 Internal Server Error

First of all, the 500 Internal Server Error is a very general HTTP status code that indicates something has gone wrong on the web server without any specifics on the exact problem.

This instruction is limited to solving a 500 error on IIS server for classic ASP websites, however some other instructions that’s related to IIS in general will help for troubleshooting IIS server for .NET applications as well.

As 500 Server Error message is very often vague, the task now is to find a more specific error message that will help us further analyze and troubleshoot the issue.

Enable Debugging and Send Errors to Browser

If the website is not in a production environment, the easiest way to do it is to enable the ASP Debugging Properties and send the errors to the browser by following these steps:

  1. Launch Internet Information Services (IIS) Manager and on the left pane, select your ASP website and click on the ASP icon (Configure properties for ASP applications).

    IIS settings to configure properties for ASP applications

  2. Under the ASP window, expand the Debugging Properties and set Enable Client-side Debugging, Enable Server-side Debugging, and Send Errors To Browser to True and click Apply.

    IIS ASP Debugging Properties settings to browser

Now, when you refresh your ASP website, you will see a more descriptive error message on your browser such as the following example:

System.Xml error '80131509'

There is an error in the XML document.

/itnota/failed-page.asp, line 289

ASP 500 Error detailed failed page

With this information, you can right away open the file (e.g., itnota/failed-page.asp) and check line number 289. Again, this option is not recommended for a production website that’s still actively used and available for public since it exposes too much information publicly. The ideal way to do it is to replicate your production environment on a staging and try to reproduce the error on a lower environment.

Check IIS Log

Another way to check 500 Internal Server Error for your ASP website is by viewing IIS error logs. This is especially true if your ASP website is a public website.

Where to find the IIS Logs?

By default, the log for your website is stored on %SystemDrive%\inetpub\logs\LogFile, but you should not use this settings for a production environment. Always set a custom path for your logs so your websites are easier to maintain in the long run. If you have a different physical hard drive for logs, even better. Make sure it’s set to Enabled.

IIS Log properties

For the sake of example, the log files are located in folder D:\Logs\ITNota.com:

From the IIS log example below, the easiest way is to look for a pipe character (“|”) on the date and time when the error happens.

IIS Log 500 Error

The error message can be broken down into two parts:

  1. /itnota/failed-page.asp id=2087216&catId=749272

  2. |289|80131509|There_is_an_error_in_the_XML_document.

The first part indicates the problematic file with its parameters which can be reconstructed by replacing the white space with a question mark (“?”) like so:

  /itnota/failed-page.asp?id=2087216&catId=749272

The second part which starts with a pipe character (“|”) is the line number that caused the error, the error code, and the error description:

  |289|80131509|There_is_an_error_in_the_XML_document.

From the above information, we are looking at the following information:

ItemDescription
Filename /itnota/failed-page.asp
Line number289
Error code80131509
Error descriptionThere_is_an_error_in_the_XML_document.

Check the affected file by opening it in Visual Studio Code or any IDE.

If you use Visual Studio Code to read and write ASP or VBScript, click here for a way how to colorize your ASP code.

November 21, 2018 Filed Under: How To Tagged With: Classic ASP, IIS, Internet Information Services, Microsoft

How to Troubleshoot Response Buffer Limit Exceeded Error in Classic ASP

How do you troubleshoot a classic ASP website when it crashes with the following error message?

Response object error 'ASP 0251 : 80004005'
 
Response Buffer Limit Exceeded
 
/itnota/test.asp, line 0
 
Execution of the ASP page caused the Response Buffer to exceed its configured limit.

Turn Off Page Buffering

By default, page buffering in ASP is set to On so one way to do it is just to turn off the page buffering.

At the top of your ASP page, add the following line after the VBScript declaration (Line 2 – highlighted):

<% @Language="VBScript" %>
<% Response.Buffer = False %>

In general though, you do want to pose a limit so your data stream does not clog up your resources especially if you’re sharing the web server with other applications. That’s why the next solution would be a better one especially for production environment.

Modify Response Buffering Limit in IIS

Another way to solve this issue is explained below, demonstrated using IIS 10 but should work the same way with IIS 7 or later as well. This would be the best solution but you need access to your IIS.

  1. Launch your IIS Manager and select your site on the Connections box on the left. Then double-click on the ASP on the right pane, which is under IIS section.

    IIS Manager ASP Configuration Settings

  2. Once the ASP window is opened, look for Limit Properties and expand on it and go to Response Buffering Limit.

    If the value was never modified, you would see 4194304 which translates to roughly 4 MB.

    IIS Manager ASP Response Buffering Limit Property (default value)

  3. This is the value, we want to modify so go ahead and change it to a larger number. In this example, we put in 64000000 (~64 MB, not quite but you get the point), basically adjust according to your need.

    IIS Manager ASP Response Buffering Limit (click Apply)

  4. Once you entered the value, just click on the Apply link button to save all settings.

The effect should be immediate without requiring a restart of IIS or Application Pool. That’s all there is to it.

Further Reading

IIS 6.0: “Response buffer limit exceeded”
Response Buffer Limit Exceeded

July 18, 2017 Filed Under: How To Tagged With: Classic ASP, IIS, Internet Information Services, Windows Server

How to Make Visual Studio Code Colorize Classic ASP Code

If you still have to do development with Classic ASP or VBScript and you want to use Visual Studio Code, you’ll soon find out that even though the code editor was built by Microsoft, there’s no language colorization support for ASP code by default. Fortunately, adding the feature can be done easily using Extensions. So here are the steps to do so:

  1. Launch Visual Studio Code and click on Go and select Go to File… or just press CTRL-P.

    Visual Studio Code Goto File

  2. On the dialog box, type in the following: ext install classic asp and press [ENTER].

    Another way to do it, you can just click on the Extensions icon (it should be the last one on the left-hand side (or press CTRL+SHIFT+X) and type in classic asp in the search box.

    Visual Studio Code Ext Install Classic ASP

  3. Select Classic ASP by Ilya Verbitskiy and click on the Install button as shown below:

    Visual Studio Code Extensions Marketplace for Classic ASP

  4. Once installed, we still have to associate the asp file extension to the newly ASP colorizer so we don’t have to manually select ASP as the language every time we open an ASP file. As it is now, Visual Studio Code still has no way to detect it as an ASP page so it will treat it as an HTML file.

    From the File menu, open Preferences and select Settings (CTRL + ,).

    Visual Studio Code Preferences Settings

  5. In Search settings box, type in “file associations” and you can either click on the Add Item button and populate the Item and Value (option 1), or you can click on link Edit in settings.json (option 2). In the older version of Visual Studio Code, only option 2 was available, but now if you only have a few entries, option 1 would be easier to do.

    Visual Studio Code Settings File Associations

  6. If you chose option 1, after adding the items, if you clicked on Edit in settings.json you should see the following:

    "files.associations": {
      "*.asp": "asp",
      "*.vbs": "asp",  // optional
      "*.inc": "asp"   // optional
    }
    

    Visual Studio Code file associations User Settings

    If you chose option 2 though, you have to add those in yourself.

  7. Save the file (CTRL-S) and close it.

That’s all there is to it, now you every time you open an asp file (or vbs script for that matter), the selected Language Mode will be set to ASP and any classic ASP code will be colorized accordingly.

This is not limited to ASP only, you can always look for any language of your choice by going to Visual Studio Marketplace.

Further Reading

Adding Language Colorization
How to Reassign Shortcut Key for Column Selection in Visual Studio Code

Download

Visual Studio Code
Classic ASP (Classic ASP Language Support) – Ilya Verbitskiy

June 3, 2016 Filed Under: How To Tagged With: Classic ASP, Code Editor, Microsoft, Visual Studio Code

How to Fix Invalid SendUsing Configuration using CDO

When you use CDOsys to send email from a classic ASP, you might see an error message below and if you look at the line error, it’s always on the message.Send:

The page cannot be displayed

There is a problem with the page you are trying to reach and it cannot be displayed.

Please try the following:

Contact the Web site administrator to let them know that this error has occurred for this URL address.

HTTP 500.100 - Internal server error: ASP error.

Internet Information Services

Technical Information (for support personnel)

Error Type:

CDO.Message.1 '80040220'

The "SendUsing" configuration value is invalid.

/path/filename.asp, line 100

Browser Type:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36

Page:
POST 279 bytes to /path/filename.asp
POST Data:
category=...

Time:
Monday, October 26, 2015, 10:12:55 PM

More information:

Click on Microsoft Support for a links to articles about this error.

Go to Microsoft Product Support Services and perform a title search for the words HTTP and 500.

Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Administration, and About Custom Error Messages.

In the IIS Software Development Kit (SDK) or at the MSDN Online Library, search for topics titled Debugging ASP Scripts, Debugging Components, and Debugging ISAPI Extensions and Filters.

Several posts would suggest that you put the SMTP server in the code. But when you already have an SMTP server setup on IIS 6.0, here’s a couple things you might want to check as well:

  1. Check if the Application Pool is at least running under version 2.0.
  2. Give user MACHINE\IIS_IUSRS modify permission on C:\inetpub\mailroot directory (or if you moved the SMTP folders somewhere else, give that permission to the new directory instead).

    Give modify access to IIS_USRS user on mailroot directory

Also check the links under Further Reading below for the common solutions pertaining to this error.

Further Reading

The “SendUsing” configuration value is invalid. (IIS.NET Forums)
The “SendUsing” configuration value is invalid. (ASP.NET Forums)

November 11, 2015 Filed Under: How To Tagged With: Classic ASP, IIS, Internet Information Services, Windows Server

Next Page »
Buy me a coffee Support this site
Buy Me a Coffee?

Categories

  • .NET
  • Coding
  • Cybersecurity
  • Database
  • How To
  • Internet
  • Multimedia
  • Photography
  • Programming
  • Resources
  • Review
  • Tips and Tricks
  • Uncategorized
  • Use Case
  • WordPress
  • Writing

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Tags

.NET .NET Core AdSense ASP.NET Cdonts Dll Classic ASP Code Editor ETL FSharp Genesis Framework Git Google HP Asset Manager HTML5 Hugo IIS Information Security Internet Internet Information Services iOS JAMStack Linux macOS Microsoft Microsoft SQL Server MVC PHP PowerShell Python Simple Mail Transfer Protocol Smtp Server SQL SQL Server SSIS SSMS SSRS Sublime Text Visual Studio Visual Studio Code VPN Windows Windows 8 Windows 10 Windows 2012 Windows Server

Copyright © 2011-2025 IT Nota. All rights reserved. Terms of Use | Privacy Policy | Disclosure