MvcMailer icon indicating copy to clipboard operation
MvcMailer copied to clipboard

MvcMailer and Orchard 1.6

Open ghost opened this issue 12 years ago • 1 comments

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..

ghost avatar Dec 24 '12 14:12 ghost

I haven't looked at Orchard.


Sent from my iPhone Sohan SM

On 2012-12-24, at 7:54 AM, imthehell [email protected] wrote:

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..

— Reply to this email directly or view it on GitHubhttps://github.com/smsohan/MvcMailer/issues/76.

smsohan avatar Dec 24 '12 15:12 smsohan