WebActivator is not working with Orchard

211 views Asked by At

I have current version of Orchard CMS 1.6.1 and WebActivator 2.0.1.

Default installation of Orchard. WebActivator PreApplicationStartMethod is not fired.

In the same solution I have sample MVC application and the same WebActivator code works fine.

What is wrong with Orchard app. Is it breaks standard ASP.NET pipeline?

Sample code (I've used both Pre and PostApplicationStartMethod):

[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(Go2See.Web.App_Start.LocalizationServiceStarter), "PreStart")]
namespace Go2See.Web.App_Start
{
    public static class LocalizationServiceStarter
    {
        public static void PreStart()
        {
            throw new ApplicationException("x");
        }
    }
}
0

There are 0 answers