AppFabric SessionStoreProvider ERRCA0012

Unanswered AppFabric SessionStoreProvider ERRCA0012

  • Saturday, July 28, 2012 4:46 PM
     
      Has Code

    I have searched more and more, but can't found any solution.

    I have a page, must execute long time , maybe 5 minutes. When finished, it will be update session and throw some exception, then ERRCA0012 occured.

    The following code will throw ERRCA0012 at the end.

        public class TestController : Controller {
            [HandleError(View="error")]
            public ActionResult Index() {
                Session["Why"] = new Why() {
                    Name = "ERRCA0012",
                    Desc = "AppFabric ERRCA0012 Exception",
                    PublishTime = DateTime.Now
                };
                return RedirectToAction("Timeout");
            }
    
            public ActionResult Timeout() {
                var why = Session["Why"] as Why;
                Thread.Sleep(5 * 60 * 1000);
                //why = Session["Why"] as Why;
                why.PublishTime = DateTime.Now;
                
                Session["Why"] = why;
                
    
                throw new Exception("Test");
            }
        }

    Please help me.

    Thank you.

All Replies

  • Thursday, September 27, 2012 9:20 AM
     
     

    Hi xingfairy,

    I am having a similar issue.

    I can't reproduce the ERRCA0012 error using your controller code. Can you let me know:

    • The AppFabric version
    • The session timeout setting value
    • The httpRuntime executionTimeout setting value

    Any other relevant environment information.

    Thanks a lot

    - Daniel