Install Issue: No session bound to the current context
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.WrappedAsyncResult
1.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
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
Support Staff 1 Posted by Anton Gogolev on 16 Feb, 2013 08:34 AM
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:2 Posted by chris.roberts on 19 Feb, 2013 11:11 AM
Thanks, your temporary solution has worked.
Anton Gogolev closed this discussion on 20 Feb, 2013 06:55 AM.