View Single Post
  #50 (permalink)  
Old May 9th, 2007, 04:59 AM
vantoko vantoko is offline
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

Hi,

I implemented the forum on my beta site and locally on my vista machine and it works fine.
However, I forgot to add ss_Posts.Priority, in my getthreads method in SQLForumsprovider.
This caused my homepage to show no threads (I have a latest threads implemented)

It caused no error locally (didn't show any threads), except on the hosting maching where CPU went up to 100% .
The event viewer showed this info (I stripped some):

An unhandled exception has occurred.

Exception information:

    Exception type: IndexOutOfRangeException

    Exception message: Priority

    Request URL: http://mybetasite/GetThreadsRss.aspx...r=LastPostDate DESC&AspxAutoDetectCookieSupport=1

    Request path: /GetThreadsRss.aspx

It seems normal to me that this exception is thrown when the SQL statement is wrong, but I cannot understand why locally the application skips the error and continues to run and on the server my CPU goes up to 100%
Is this something with this forum extension, is this an error in the TBH code, ..... ??

all tips welcome

Koen