Install Issue: No session bound to the current context

chris.roberts's Avatar

chris.roberts

15 Feb, 2013 03:13 PM

Hi

I have followed the installation instructions but i keep getting the below error when i try to go to the website.

Running on Windows Server 2003, IIS6.0, SQL Server 2008R2

Server Error in '/' Application.
No session bound to the current context
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 session bound to the current context

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 session bound to the current context] NHibernate.Context.CurrentSessionContext.CurrentSession() +75 NHibernate.Impl.SessionFactoryImpl.GetCurrentSession() +20 HgLab.Core.Framework.Persistence.ActiveRecordBase.get_Session() in d:\Projects\hglab\src\HgLab.Core\Framework\Persistence\ActiveRecordBase.cs:22 HgLab.Core.ObjectModel.Setting.GetSetting(String module, String property) in d:\Projects\hglab\src\HgLab.Core\ObjectModel\Setting.cs:35 HgLab.Core.ApplicationServices.Impl.SettingsRegistryService.GetSetting(String module, String property, String defaultValue) in d:\Projects\hglab\src\HgLab.Core\ApplicationServices\Impl\SettingsRegistryService.cs:34 HgLab.Core.Framework.Web.HgLabControllerBase.Execute(RequestContext requestContext) in d:\Projects\hglab\src\HgLab.Core\Framework\Web\HgLabControllerBase.cs:39 System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10 System.Web.Mvc.<>c__DisplayClassb.b__5() +37 System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +21 System.Web.Mvc.Async.<>c__DisplayClass81.<BeginSynchronous>b__7(IAsyncResult _) +12 System.Web.Mvc.Async.WrappedAsyncResult1.End() +55 System.Web.Mvc.<>c__DisplayClasse.b__d() +31 System.Web.Mvc.SecurityUtil.b__0(Action f) +7 System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +23 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +59 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8970061 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

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

  1. Support Staff 1 Posted by Anton Gogolev on 16 Feb, 2013 08:34 AM

    Anton Gogolev's Avatar

    Chris,

    Thanks for the detailed report. HgLab is not currently being tested under IIS 6.0, but I think I should reconsider this decision.

    This will be fixed in the next release. I'll get in touch with you as soon as it's available.

    As a temporary solution you can add the following lines to the Web.config inside <system.web> element:

    <httpModules>
      <add name="Middleware" 
           type="octalforty.Structural.MiddlewareModule, octalforty.Structural" />
    </httpModules>
    
  2. 2 Posted by chris.roberts on 19 Feb, 2013 11:11 AM

    chris.roberts's Avatar

    Thanks, your temporary solution has worked.

  3. Anton Gogolev closed this discussion on 20 Feb, 2013 06:55 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM
21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM

 

18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM