ERROR: "Type mismatch/SWACustomize/LoginSubmit.asp, line 64"

0 Likes

Problem:

ERROR: "Type mismatch/SWACustomize/LoginSubmit.asp, line 64"

Resolution:

Information in this Brief applies to:

  • StarTeam 4.x Web Edition
  • StarTeam 4.x Web Approval


Problem


When Microsoft released IE 5.5, they changed one of the date-valued COM objects so that it no longer accepts a string (e.g., "2/14/2001 2:00:00PM") as a valid value. Instead, you must pass a VARIANT of typeVT_DATE.

The problem has been addressed in new builds but, some may need this fix for anearlier Web Edition or Web Approval.

Workaround

To patch the problem, change these lines in the LoginSubmit.asp file:

// Save Address, Port, and User in cookies on client computer.
// Default.asp will use these, if present, as default values.
Response.Cookies("Address") = strAddress;
Response.Cookies("Address").Expires = strDate;
Response.Cookies("Port") = nPort.toString();
Response.Cookies("Port").Expires = strDate;
Response.Cookies("User") = strUser;
Response.Cookies("User").Expires = strDate;

to this:

// Save Address, Port, and User in cookies on client computer.
// Default.asp will use these, if present, as default values.
Response.Cookies("Address") = strAddress;
Response.Cookies("Address").Expires = d.getVarDate();
Response.Cookies("Port") = nPort.toString();
Response.Cookies("Port").Expires = d.getVarDate();
Response.Cookies("User") = strUser;
Response.Cookies("User").Expires = d.getVarDate();

Old KB# 28502
Comment List
Related
Recommended