500-100.asp Returns "Type Mismatch" Error After Request.BinaryRead() Method (244758)
The information in this article applies to:
- Microsoft Internet Information Services 5.0
This article was previously published under Q244758 SYMPTOMS
When an ASP page that uses the Request.BinaryRead() method generates an error and control is passed to the 500-100.asp error page, the following error is generated:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'Server.HTMLEncode'
/iisHelp/common/500-100.asp, line ...
CAUSE
This error is generated because the POST information from the Request.BinaryRead method returns an array, whereas the Server.HTMLEncode method in the 500-100.asp page expects a string to be passed.
WORKAROUND
The default 500-100.asp error page can be modified to ignore errors by adding an "On Error" statement:
- Open Windows Explorer.
Change folders to your %SystemRoot%\help\iishelp\common folder.
Open 500-100.asp in Notepad.
The top lines of the file should resemble the following:
<%@ language="VBScript" %>
<%
Option Explicit
Const lngMaxFormBytes = 200
Change the top few lines to read the following:
<%@ language="VBScript" %>
<%
Option Explicit
On Error Resume Next
Const lngMaxFormBytes = 200
- Change folders to your %SystemRoot%\help\iishelp\common folder.
Open 500-100.asp in Notepad.
The top lines of the file should resemble the following:
<%@ language="VBScript" %>
<%
Option Explicit
Const lngMaxFormBytes = 200
Change the top few lines to read the following:
<%@ language="VBScript" %>
<%
Option Explicit
On Error Resume Next
Const lngMaxFormBytes = 200
- Open 500-100.asp in Notepad.
The top lines of the file should resemble the following:
<%@ language="VBScript" %>
<%
Option Explicit
Const lngMaxFormBytes = 200
Change the top few lines to read the following:
<%@ language="VBScript" %>
<%
Option Explicit
On Error Resume Next
Const lngMaxFormBytes = 200
- The top lines of the file should resemble the following:
<%@ language="VBScript" %>
<%
Option Explicit
Const lngMaxFormBytes = 200
Change the top few lines to read the following:
<%@ language="VBScript" %>
<%
Option Explicit
On Error Resume Next
Const lngMaxFormBytes = 200
- Change the top few lines to read the following:
<%@ language="VBScript" %>
<%
Option Explicit
On Error Resume Next
Const lngMaxFormBytes = 200
Modification Type: | Major | Last Reviewed: | 6/28/2004 |
---|
Keywords: | kbpending kbprb KB244758 |
---|
|