Captcha Problems

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/25/2011 10:01:33 AM
Gravatar
Total Posts 9

Re: Captcha Problems

I can reproduce this error on my site. It does not seem to be browser specific as I can get it to happen on IE 7, 8, 9 and Firefox 3, 4. It seems to happen at complete random.

Error:

2011-04-25 11:00:45,724 ERROR mojoPortal.Web.Global /CaptchaImage.ashx?spec=8WgU%2bYfd6asJmANHT4VBIY9pwHGoSFuHXqkhvsRaNhU3s%2b8JSMEJjS1tQ6gmFqLU
System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
   at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
   at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
   at Subkismet.Captcha.CaptchaBase.DecryptString(String encryptedEncodedText)
2011-04-25 11:00:45,895 INFO mojoPortal.Web.Global - crypto error trapped and returned a 404 instead of 500 for security reasons

4/25/2011 10:41:03 AM
Gravatar
Total Posts 18439

Re: Captcha Problems

If you can provide steps to reliably produce the problem I will investigate it as a bug, but if I cannot produce it I cannot investigate it. I know there are bots and things that crawl the web that can produce errors like this in the log, so just seeing it in the log does not concern me or convince me that it happens under normal usage of the site by users.

Best,

Joe

4/25/2011 11:16:38 AM
Gravatar
Total Posts 9

Re: Captcha Problems

I'm leaning on it being some kind of Server configuration issue, though I can't seem to pinpoint what is causing it. I can only reproduce it on certain Win 2K3 servers.

Example:

http://resources.kanguru.com/Secure/Register.aspx (Fails about 1/2 the time)

http://test.kanguru.com/MojoPortal/Secure/Register.aspx (Works every time)

These are both Server 2K3 boxes running IIS6 .net 4

4/25/2011 11:21:38 AM
Gravatar
Total Posts 18439

Re: Captcha Problems

maybe if there is a problem like the application is recycling frequently it could cause this kind of error, ie if the page loads in the browser and then the application recycles before the page is submitted it might cause this kind of thing. A low memory environment can make it recycle constantly. So if you are seeing a lot of application start and end events in the log in addition to this error it may be a factor.

Best,

Joe

4/25/2011 12:08:00 PM
Gravatar
Total Posts 9

Re: Captcha Problems

I'll keep an eye out and post any news, hopefully it will help someone else with a similar issue.

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