Use of ASP Net Session State

Aug 7, 2012 at 7:17 AM

Hi

It seems that captcha MVC 3 makes use of ASP Session State. We've used SQL Session State persistence, and unfortunately it seems that whatever captcha MVC 3 is trying to put into Session State is itself not serializable.

[SerializationException: Type 'CaptchaMvc.Models.StringCaptchaValue' in Assembly 'CaptchaMvc, Version=2.1.0.0, Culture=neutral, PublicKeyToken=fe46ad421dd3b0e6' is not marked as serializable.]

Regards

Stuart

Coordinator
Aug 7, 2012 at 7:52 AM

Hi

Yes, CaptchaMvc support for storing captcha in the session or cookie, by default it uses the session. I will decide this issue today or tomorrow and publish a new version. While you can use the cookie container, it does not use session.

        protected void Application_Start()
        {
            CaptchaUtils.CaptchaManager.StorageProvider = new CookieStorageProvider();

           .....................................
        }

Best regards,

Volkov V.S.

Coordinator
Aug 7, 2012 at 7:53 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Aug 7, 2012 at 3:14 PM

The issue is fixed, you can download the new version.

Best regards,

Volkov V.S.