Problems when running a WCF client. 'An ISessionStorage has not been configured'

463 views
Skip to first unread message

Martin T

unread,
Apr 14, 2011, 2:26:25 AM4/14/11
to S#arp Architecture
hi all, i am having a problem when trying to access my local WCF
service from a test client app. i am a complete newcomer to WCF and
sharp architecture, so its quite possible that i am missing something
obvious. :)

anyhow, when i am accessing my WCF service (IIs6) to return a simple
'hello world' message, it works OK. but when i am trying to access a
method that utilises NHibernate I am receiving the following message:
'An ISessionStorage has not been configured' when I am running this
method accessed from my WCF method:

NHibernateSession.Current.Save(listContacts[i]);

(it should be noted here that so far I am not using the SharpArch
repository pattern)

i have NHIbernate all setup and working on the sibling website
project. and the global.asax NHibernate initialisation code looks OK
in my WCF service project (I used the NorthWind sample as a reference
point). Its almost as if the Global class is not being fired. or that
I am picking up the wrong NHibernateSession somehow.

thanks for any help with this

Martin T

unread,
Apr 14, 2011, 7:24:28 PM4/14/11
to S#arp Architecture
hello

i realised that in my WinForm i was instantiating the service rather
than the client class :) oh well, i changed it, and all looks good now
Reply all
Reply to author
Forward
0 new messages