MvcMailer and Orchard 1.6

Topics: General
Dec 24, 2012 at 1:52 PM

I'm trying to integrate MvcMailer in Orhcard 1.6 but I have this error:

'HttpContext.SetSessionStateBehavior' can only be invoked before 'HttpApplication.AcquireRequestState' event is raised.

in file Orchard\Mvc\Routes\ShellRoute.cs line 54

I tried to debug and I found that the error is thrown from:

private void CreateControllerContext() {
            var routeData = RouteTable.Routes.GetRouteData(CurrentHttpContext);
            ControllerContext = new ControllerContext(CurrentHttpContext, routeData, this);
mailerBase.cs of MvcMailer.

In a normal mvc 4 application all goes fine.

Can someonehelp me or someone who has already installed successfully?

Thank you..


Dec 24, 2012 at 2:34 PM
Edited Dec 24, 2012 at 2:34 PM

I find this post that has the same problems...

How to resolve?

Dec 29, 2012 at 6:15 PM

I have created an issue for this, please vote on it if you want it to be fixed