Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - 500 error in rss_feed_topic.asp
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

500 error in rss_feed_topic.asp

 Post Reply Post Reply
Author
DeadMeat View Drop Down
Newbie
Newbie
Avatar

Joined: 24 January 2006
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote DeadMeat Quote  Post ReplyReply Direct Link To This Post Topic: 500 error in rss_feed_topic.asp
    Posted: 08 May 2006 at 11:04am
Hi
 
I am getting a 500 error in the file : functions/functions_date_time_format.asp at line 78.
 
The error message is : Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
 
I am not sure what could be causing this, and unfortunately I do not have time at this moment to debug it as to the exact problem. If some one else has had this problem and corrected i, please let me know. If you need more information let me know and I will post more data from the error message.
 
Thanks
DM
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: 09 May 2006 at 9:08am
You can get this error is the date/time database has not successfully been loaded into the web servers application pool.

There is error handling to prevent this, although there is a bug in the RSS files at present, which is being fixed. But if you get this error in other parts of your forum you may have a corrupted file, so try reuploading the files again.
Back to Top
DeadMeat View Drop Down
Newbie
Newbie
Avatar

Joined: 24 January 2006
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote DeadMeat Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2006 at 10:20am
Hi Borg
 
That is the only error I get, everything else works like a dream. The bad part is that the error handling is not catching it.
 
Ok after looking through things, I have located the source of the problem, and it is really simple I should have seen it sooner. The error is only likely to occur when the application variables are reset by the server, and the first page the user/bot loads is the rss feeds. The problem is that adoCon
is set to nothing at that moment in time. The simplest way around this error would be to check if adocon is valid and if not then open the database, and then close it afterwards, so that the real opendatabase does not cause problems.
 
This is not elegant, but will stop the rss feed pages from generating this particular error.
 
In File functions_date_time_format.asp
line 77 insert  :
   dim   we_open
   we_open = false
   if adoCon is Nothing then
      Call openDatabase(strCon)
      we_open = true
   end if
 
and then in line 98 insert :
   if (we_open = true) then
      Call closeDatabase()
   end if
 
Not really nice, but it will stop the error 500, not sure if this is the same as some of the other problems that you are chasing, but could be a pointer.
 
Thanks
DM


Edited by DeadMeat - 09 May 2006 at 10:23am
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: 09 May 2006 at 10:26am
To prevent the error in the RSS_ files, move the call to the include file, functions_date_time_format.asp to after the database opening call.

This will prevent these types of errors occuring.
Back to Top
DeadMeat View Drop Down
Newbie
Newbie
Avatar

Joined: 24 January 2006
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote DeadMeat Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2006 at 10:32am
Hi Borg
 
Thanks a bundle mate will do. This should sort out the problem. Just remember that there is no error trapping around the code in functions_date_time_format.asp file.
 
Thanks
DM
Back to Top
 Post Reply Post Reply

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.