I get this:
“A storage mechanism has already been configured for this application”
The thing is – I already have another s#arp archtecture web app successfuly running on the server – could this be the problem?
I have this:
private void InitializeNHibernateSession()
{
NHibernateSession.Init(
webSessionStorage,
new string[] { Server.MapPath(“~/bin/Bla.Data.dll”) },
new AutoPersistenceModelGenerator().Generate(),
Server.MapPath(“~/NHibernate.config”));
}
which should be ok.
Thanks!
Christian
I had a similar issue. Try to run iisreset command