471,854 Members | 1,672 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,854 software developers and data experts.

Request.ClientCertificate collection type mismatch

I have used simple asp pages to enumerate value/properties of the
Request.ClientCertificate collection like so:

For Each strKey in Request.ClientCertificate
Response.Write strkey & " = " & Request.ClientCertificate(strkey) & "<BR>"

exactly as suggested in the MSDN documentation here (under the Sample Code
for VBS):

That worked in W2k Pro sp2 ... last year, but I recently upgraded to XP Pro sp2
and now, that simple asp enumeration throws a VBS mismatch error:

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch
/cryptoasp/clientcert00.asp, line 10

I need to explicitly convert to a string to avoid the error using:

When did this change occur??

Note that this explicit casting to a string using CStr is not required for collections
such as Request.ServerVariables

- Mitch Gallant
Oct 17 '05 #1
0 1662

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.