SetFBML causing error

Jul 7, 2007 at 7:55 AM
I'm calling setFBML and it works fine if the facebookuser id is valid,
but when the id doesn't exist or not accessible somehow,
i get the following error:

[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +62
System.ThrowHelper.ThrowArgumentOutOfRangeException() +12
System.Collections.Generic.List`1.get_Item(Int32 index) +2633716

I have:

' Verify user exists
_fbService.SetFBML(strHTML, FaceBookUserId)
'Capture error here
End Try

but some reason the are is not caught. and the error above?
you can try this with any invalid id and should get the same error.
why isn't the error being caught or bubbling to my try/catch?

Jul 9, 2007 at 10:00 PM
Can you try it again? I just tried this out, and was able to catch the error.

If it doesn't work, Can you try to change your Catch to Catch Exception ee and see if that changes it?
Jul 9, 2007 at 10:36 PM
sorry, guess the code did work.
there was another line up the chain that was calling: _fbService.GetUserInfo.FirstName

that didn't have a try catch around it.

all's good! thanks!
Jul 9, 2007 at 11:14 PM