469,343 Members | 5,388 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,343 developers. It's quick & easy.

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 1606

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.