This usually happens when you mix up names of string/numeric variables and array variables. For example:
<% f = "hello" '... f = split("foo","bar") '... response.write(f) %> |
Will produce this error:
Response object error 'ASP 0106 : 80020005' Type Mismatch /<file>.asp, line 0 An unhandled data type was encountered. |
To get rid of this error, check the line it occurs on for any variables used, then scan through the file for any other use of that same variable name. If the error returns line 0, you will have to do a bit more digging through your file -- you can narrow your search down to look at the names you give complex data types (e.g. objects or, more commonly, arrays).