gravatar.cs throws ArgumentOutOfRangeException()

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/12/2010 12:46:15 PM
Gravatar
Total Posts 22

gravatar.cs throws ArgumentOutOfRangeException()

It's entirely possible that my config is to blame, but I don't see where.

The issue is this:

When loading UserProfile.aspx in debug mode, Gravatar.cs always throws ArgumentOutOfRangeException in the Render(HtmlTextWriter output) method when checking the Size is between 1 and 512. At the time it checks, Size is 0.

10/12/2010 1:42:53 PM
Gravatar
Total Posts 18439

Re: gravatar.cs throws ArgumentOutOfRangeException()

This is not a bug. In debug mode VS will stop at all exceptions, this exception is handled by a try catch so you just click continue to keep going.

I will say that I did not write the Gravatar.cs, but I just updated the code to have a default value for Size which it did not have before and was thus throwing the exception because it was not in range of expected values if the property was not explicitly specified on the control.

But in general one should not assume that an error that causes the debugger to stop execution is a bug if the error is handled. The debugger will stop on every exception.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.