471,089 Members | 1,002 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

Regarding Webservice, NHibernate and their sessions

Hello,

I'm trying to make a "clean" webservice, using Nhibernate. I'm facing
some issues, but i'm quite the beginner with that kind of system. When
there are more than 2 clients connected on my webservice, i get
errors. It seems that the connection is dropped. Here is what i get
in theWinforms application using the Webservice :

Error = {"The underlying connection was closed: An unexpected error occurred
on a receive."}

and sometimes :

[System.Net.WebException] = {"The request failed with HTTP status 403:
Access Forbidden."}

In my webservices, I don't catch any exceptions.

My webservice is working like this : for each "Webservice" session I have,
I create a "NHibernate" session. Is it a good approach ? And when the
users are disconnecting from my webservice without warning, does the
garbage collector manage the "ghost" Nhibernate sessions ?

I also have a static class that manages a static ISessionFactory, and that's
the class I use to create new NHibernate sessions for new connected
users. Is this correct too ?

Thanks in advance :)
Jan 6 '07 #1
0 1639

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Rob | last post: by
8 posts views Thread by Roman | last post: by
reply views Thread by Aquila Deus | last post: by
1 post views Thread by erin.sebastian | last post: by
5 posts views Thread by gaddoz | last post: by
4 posts views Thread by IceMan | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.