Print Page | Close Window

CDate errors

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=8317
Printed Date: 07 April 2026 at 4:13am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: CDate errors
Posted By: Mattblack
Subject: CDate errors
Date Posted: 24 December 2003 at 3:46pm

Please please help....

I keep getting the following error the first time i load my forums up....

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'CDate'

default.asp, line 77

If i reload the page, i get this error....

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'CDate'

common.asp, line 193

I get back to the first error by clearing my cookies.  What on earth is going on???  Please please help!

 




Replies:
Posted By: WebWiz-Bruce
Date Posted: 25 December 2003 at 2:50am
Have you follwed the install instructions that descibes a solution to this problem if you get it on the server you are on????


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Mattblack
Date Posted: 25 December 2003 at 3:03am

Yes ive unquoted the line 'Session.LCID = 1033 in both the common.asp file in the root and also in the admin folder.  It works(ed!) fine on Web Wiz server. And ive set it to 2057 for UK.

??? Any ideas?

PS: Please reply to my email ASAP!



Posted By: WebWiz-Bruce
Date Posted: 25 December 2003 at 3:30am
You need to set the LCID number to that of your hosts locale.

If you run the server yourself, check all the date and time settings in the servers control panel are set to your own locale. (there is nmore than one)


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Mattblack
Date Posted: 25 December 2003 at 3:48am
How do you find out the locale setting on an ISPs server?  Is there an ASP script you can run which shows it?


Posted By: Mattblack
Date Posted: 25 December 2003 at 4:07am

Ok, i think its 1033.

See http://faq.oneandone.co.uk/hosting/14.html - http://faq.oneandone.co.uk/hosting/14.html

I put that code in the global.asa file though, no luck.  Ive also uncommented the line in the common.asp file, with and without the bit in global.asa.

God this is a nightmare.  Still getting the same error too.



Posted By: Mattblack
Date Posted: 25 December 2003 at 4:22am

this is the line causing the problem...

If Session("dtmLastVisit") < CDate(Request.Cookies("ForumVisit")("LastVist")) Then
   Response.Write(strTxtYouLastVisitedOn & " " & DateFormat(Session("dtmLastVisit"), saryDateTimeData) & " " & strTxtAt & " " & TimeFormat(Session("dtmLastVisit"), saryDateTimeData) & ".")
End If 



Posted By: Arvin
Date Posted: 25 December 2003 at 9:36am

I had the same problem - But I only needed to unquote the line:
Session.LCID = 1030 (Danish)

And then no problems - No Global.asa or so... 



Posted By: Mattblack
Date Posted: 25 December 2003 at 1:48pm

is there any other way of finding what the LCID should be set to?  Maybe the information iv got isnt right.  Any way of running a script that shows whats running on the server???

Ta



Posted By: Mattblack
Date Posted: 25 December 2003 at 4:30pm

SORTED!

Managed to find out that my server is hosted in germany (.de domain in mailer router) and so set the following...

Session.lcid = 1031

Works like a dream now.  Cheers all




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net