Server Error in '/' Application.

No CurrentSessionContext configured (set the property current_session_context_class)!

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: NHibernate.HibernateException: No CurrentSessionContext configured (set the property current_session_context_class)!

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HibernateException: No CurrentSessionContext configured (set the property current_session_context_class)!]
   NHibernate.Impl.SessionFactoryImpl.GetCurrentSession() +94
   iClips.Models.DAO.SessionDAO.getSessionFactory(String subdomain) +2876
   iClips.Models.DAO.SessionDAO.Open(String cliente, Boolean auditarAutomatico) +62
   iClips.Models.DAO.RepositoryDAO`1.ListarTudo() +93
   iClips.App_Start.<>c.<RegisterServices>b__4_2(IContext a) +154
   Ninject.Activation.Provider`1.Create(IContext context) +21
   Ninject.Activation.Context.ResolveInternal(Object scope) +142
   Ninject.Activation.Context.Resolve() +136
   System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +238
   System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source) +261
   System.Web.Mvc.DependencyResolverExtensions.GetService(IDependencyResolver resolver) +56
   iClips.Controllers.IClipsController..ctor() +667
   iClips.Controllers.MasterController..ctor() +58
   iClips.Controllers.AgendaController..ctor(UrlOptions urlOptions, IConfiguracaoService configurationService) +312
   DynamicInjectorbf5850ca9f734abb8179ed836eba0e6b(Object[] ) +155
   Ninject.Activation.Context.ResolveInternal(Object scope) +142
   Ninject.Activation.Context.Resolve() +171
   System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +238
   System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source) +261
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +61

[InvalidOperationException: Ocorreu um erro ao tentar criar um controlador do tipo 'iClips.Controllers.AgendaController'. Verifique se o controlador tem um construtor público sem parâmetros.]
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +242
   System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +6579
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +258
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +85
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +4081
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +224
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +1366


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4076.0