Hello
Did you have any luck solving this issue. We are experiencing exactly the 
same thing. It works in our development environment but we are seeing the 
lazy loading exceptions on staging. We are also using the asp.net session 
state database.

Thanks


On Saturday, February 2, 2013 5:40:18 AM UTC-8, Mátyás Jáni wrote:
>
> Hello All,
> We face the following issue with NHibernate, version 3.2:
> We implemented a compound application, which has a Windows Forms thick 
> client, a client running inside AutoCAD (parts from the WF client) and 
> there is an ASP.NET Web Forms Web client. All clients use DevExpress 
> controls. All clients access the same SQL Server database.
> In the web application, we use the session-per-request approach for the 
> NHibernate sessions. There are some objects which are saved to the 
> ASP.NETSession State, but they are merged into the active session before use.
> The issue is that, after performing some editing with the WF client, in 
> the web application an exception is raised telling that it cannot 
> initialize some proxy object because there is no session. It is sure that 
> the session drop is caused by the editing performed in the WF client 
> somehow indirectly.
> I include a detailed NHibernate log, from what is clearly visible is that 
> NHibernate tries to initialize some proxies when no session opening/closing 
> is performed, compared to the previous log entries, where NHibernate 
> activity is done by the expected way - open ADO session > perform 
> operations > close ADO session.
> What is also interesting, that the same code on the same dataset (copy of 
> the original database) performs without any errors on different systems 
> (Win7, WinSrv2008R2).
> Here is some additional information about the system where the error is 
> experienced:
> All components are running on 64-bit Windows 2008 R2, SQL Server is 2008R2 
> Enterprise with Service Pack 1, IIS is version 7.5.
> The web-site is a pass-trough application who gets its credentials true 
> the application pool
> The web-site user is part of the universal access group, witch can connect 
> to sqlserver. I also tested it with and sql-server user (same result).
> The application works on 3 virtual servers (all Windows 2008 R2 Standard), 
> a webserver with 3 application (pools), a database server with sqlserver 
> (2008 r2) and mssql and an application server with the main client and 
> hopefully soon the cad-client all the systems use Sophos as virus 
> protection.
> Did anyone of you experienced similar issues in similar situation, and if 
> yes, what has been the solution? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to