Forum Themes:
Welcome !

 member access to forums

Author Message
locogringo

  • Total Posts : 7
  • Reward points : 60
  • Joined: Apr 16 '07
  • Status: offline
member access to forums Sat. Mar 22, '08 8:42 AM (permalink)
0
We have upgraded our forums software to Advanced Edition 2.4.5 ANSI and moved them to a dedicated server. Since I can not post to the support forums I am hoping to get assistance here.

Some of our forum members are receiving the error message below and are denied access to the forums.

ADODB.Command error '800a0d5d'
Application uses a value of the wrong type for the current operation.
/forums/js/globalSessionFunction.asp, line 24


The line 24 of code quoted above is:
.Parameters.Append .Createparameter("@IP", adVarChar, adParamInput, 15, getIPAddress())


Any comments or advice on how to remedy this issue are appreciated!


Gary
 
#1
Samuel

  • Total Posts : 11858
  • Reward points : 180790
  • Joined: May 23 '01
  • Status: offline
RE: member access to forums Sat. Mar 22, '08 2:54 PM (permalink)
0
try changing the getIPAddress function (js/globalfunctions.asp) to the following and see if it works.

Function getIPAddress()
  getIPAddress = Request.ServerVariables("REMOTE_ADDR")
End Function

I will leave this message here for two days and it will be deleted. Please use the support forum (you have an account with us in the support forum) or email for future support requests.
ASPPlayground.NET
~ see our Version 4 plans here

 
#2
locogringo

  • Total Posts : 7
  • Reward points : 60
  • Joined: Apr 16 '07
  • Status: offline
RE: member access to forums Sat. Mar 22, '08 4:16 PM (permalink)
0
I tried the fix on the page and line you specified and it crashed all the forums with the following error message. (I restored from a backup, no worries.)

Microsoft VBScript compilation  error '800a03ed'

Expected '('

/forums/js/globalfunctions.asp, line 935

Function getIPAddress = Request.ServerVariables("REMOTE_ADDR")
----------------------^

I am perfectly willing to use your support forums for this trouble shooting. I am logged in yet access is denied to the support forums. Please email me login and pw to the support forums and we can continue there if you prefer.

thanks,
Gary
 
#3
Samuel

  • Total Posts : 11858
  • Reward points : 180790
  • Joined: May 23 '01
  • Status: offline
RE: member access to forums Sun. Mar 23, '08 4:34 PM (permalink)
0
you did not do what I described above. The syntax is not correct. Please reread my post above.

By the way, your account that has the correct permission to enter the support forum is madsit.
ASPPlayground.NET
~ see our Version 4 plans here

 
#4
locogringo

  • Total Posts : 7
  • Reward points : 60
  • Joined: Apr 16 '07
  • Status: offline
RE: member access to forums Mon. Mar 24, '08 8:50 AM (permalink)
0
Sorry, I did not realize you want all 3 lines pasted in.

I have now replaced.********

Function getIPAddress()
   Dim strIPAddress
  
   if Request.ServerVariables("HTTP_X_FORWARDED_FOR") <> "" then
       strIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
   elseif Request.ServerVariables("HTTP_CLIENT_IP") <> "" then
       strIPAddress = Request.ServerVariables("HTTP_CLIENT_IP")
   else
       strIPAddress = Request.ServerVariables("REMOTE_ADDR")
   end if
  
   getIPAddress = left(replace(replace(strIPAddress,"'",""),"""",""),50)
End Function

******with.....

Function getIPAddress()
  getIPAddress = Request.ServerVariables("REMOTE_ADDR")
End Function

Also madsit is our technical consultant. He is not me.

Thank you for your assistance Samuel. I will post the results here.

Best regards,
<message edited by locogringo on Mon. Mar 24, '08 11:50 AM>
Gary
 
#5
locogringo

  • Total Posts : 7
  • Reward points : 60
  • Joined: Apr 16 '07
  • Status: offline
RE: member access to forums Mon. Mar 24, '08 11:47 AM (permalink)
0
So far so good. It's early yet but two of our members who were experiencing problems have already reported that they are ok now.

Thanks again Samuel!
 
#6
Online Bookmarks Sharing: Share/Bookmark

Jump to:

Current active users

There are 0 members and 1 guests.

Icon Legend and Permission

  • New Messages
  • No New Messages
  • Hot Topic w/ New Messages
  • Hot Topic w/o New Messages
  • Locked w/ New Messages
  • Locked w/o New Messages
  • Read Message
  • Post New Thread
  • Reply to message
  • Post New Poll
  • Submit Vote
  • Post reward post
  • Delete my own posts
  • Delete my own threads
  • Rate post

2000-2012 ASPPlayground.NET Forum Version 3.9