I don't know if you have solved the problem, but by the way you adviced me, my project begins to run. So, currently in my case I don't use neither AddXMLFile nor AddAssemly. Instead of that, I write:
Code:
cfg.AddAssembly(System.Configuration.ConfigurationManager.AppSettings["HBM_ASSEMBLY"]);
where HBM_ASSEMBLY is a key in the web.config like this:
Code:
<add key="HBM_ASSEMBLY" value="NHibernateSample.Core"/>
All I use comes from the article at
http://www.codeproject.com/aspnet/NHibernateBestPractices.asp[/url]