Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - CDate errors
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CDate errors

 Post Reply Post Reply Page  12>
Author
Mattblack View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mattblack Quote  Post ReplyReply Direct Link To This Post Topic: CDate errors
    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!

 

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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????
Back to Top
Mattblack View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mattblack Quote  Post ReplyReply Direct Link To This Post 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!

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
Mattblack View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mattblack Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Mattblack View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mattblack Quote  Post ReplyReply Direct Link To This Post Posted: 25 December 2003 at 4:07am

Ok, i think its 1033.

See 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.

Back to Top
Mattblack View Drop Down
Groupie
Groupie
Avatar

Joined: 21 January 2003
Location: United Kingdom
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mattblack Quote  Post ReplyReply Direct Link To This Post 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 

Back to Top
Arvin View Drop Down
Newbie
Newbie


Joined: 23 December 2003
Location: Denmark
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Arvin Quote  Post ReplyReply Direct Link To This Post 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... 

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.