Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2006-05-30
Medium Priority
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
  • 2
  • 2
LVL 52

Expert Comment

by:Carl Tawn
ID: 16796994
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

ID: 16800853
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 ad4.sina.com.cn or the "frame"??
LVL 52

Accepted Solution

Carl Tawn earned 270 total points
ID: 16800988
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

ID: 16801616
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 informatio…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Integration Management Part 2
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month21 days, 2 hours left to enroll

810 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