How the type mismatch: 'CLng' happened in my site?

Posted on 2006-05-30
Last Modified: 2012-08-13

In my log file of my site, I found error report in cs-uri-query:
and the cs(Referer) was

I tried to typed the above whole url into the address box of my browser and got error
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'CLng'
/xxxxxx.asp, line 21

Cannot believe this mismatch can accure in that case in my site, I then typed the true url without the frame:
and as expected, got no type mismatch at all.

Do you think what happened?

Thank you in advance.
Question by:learn
    LVL 52

    Expert Comment

    by:Carl Tawn
    Possibly the code is simply trying to CLng the first parameter in the querystring. Which in the first sample would be the URL parameter which is a string and would cause a Type Mismatch, whereas in the second the first parameter is ID which is numeric and will parse ok.

    You need to look at the line causing the error to suss it out properly.

    Author Comment

    I found something.
    the querystring should be "ID=1547&topic=......", but it was changed to "ID=1547?": "&topic=......" was cut and a "?" added at the end!!
    Who did that? The company or the "frame"??
    LVL 52

    Accepted Solution

    Whoever generates the link in the first place. The problem is that there are two question marks (?) in the URL which is confusing the parser.

    It should probably say:

    So that URL and ID are both treated as parameters to frame.html

    Author Comment

    I have just tested if use only one question mark,
    there will be no querystring at all.
    Anyway, it seems I cannot do anything except use the url without querystring.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Suggested Solutions

    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now