hi all, i have a web application (.net 2.0) which exposes also an
object with .net remoting.

my problem is that i need to have a method of that object to be called
by remote code with an async fire and forget behaviour
(OneWayAttribute mode).
whene the async code is execute on the threadpool thread there's this
exception (i think becouse there's no httpcontext associated with the
thread)

(System.NullReferenceException: Object reference not set to an
instance of an object.
   at lambda_method(ExecutionScope , Object )
   at
NHibernate.Context.ReflectiveHttpContext.get_HttpContextCurrentItems()
   at NHibernate.Context.WebSessionContext.GetMap()
   at NHibernate.Context.MapBasedSessionContext.get_Session()
   at NHibernate.Context.CurrentSessionContext.HasBind(ISessionFactory
factory))

so i want know if there's a way to bind by hand a session (to get it
with sessionFactory.GetCurrentSession)
when using WebSessionContext on a clean (= not initialized by aspenet)
thread pool thread.

thanks

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

Reply via email to