• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1818
  • Last Modified:

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

Hi,

In my log file of my site, I found error report in cs-uri-query:
ID=1547?|25|800a000d|Type_mismatch:_'CLng'
and the cs(Referer) was
http://ad4.sina.com.cn/sina/ziguang/frame.html?url=http://....../xxxxxx.asp?ID=1547&topic=......

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:
http://....../xxxxxx.asp?ID=1547&topic=......
and as expected, got no type mismatch at all.

Do you think what happened?

Thank you in advance.
0
learn
Asked:
learn
  • 2
  • 2
1 Solution
 
Carl TawnSystems and Integration DeveloperCommented:
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.
0
 
learnAuthor Commented:
I found something.
From
http://ad4.sina.com.cn/sina/ziguang/frame.html?url=http://....../xxxxxx.asp?ID=1547&topic=......
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"??
0
 
Carl TawnSystems and Integration DeveloperCommented:
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:

    http://ad4.sina.com.cn/sina/ziguang/frame.html?url=http://....../xxxxxx.asp&ID=1547&topic=......

So that URL and ID are both treated as parameters to frame.html
0
 
learnAuthor Commented:
I have just tested if use only one question mark,
    http://ad4.sina.com.cn/sina/ziguang/frame.html?url=http://....../xxxxxx.asp&ID=1547&topic=......
there will be no querystring at all.
Anyway, it seems I cannot do anything except use the url without querystring.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now