I'm trying to use NHibernate with my project, I've generated NHibernate class and xml file using NGen. After that, I try to test my application but when I run to second line of this code.
var configuration = new Configuration();
configuration.Configure();
It show error message like below.
Could not find a part of the path 'D:\App\bin\Debug\hbm\MyFile.hbm.xml'.
Obviously this file doesn't exist, because it's located in D:\App\bin\Debug*\Data*\hbm\MyFile.hbm.xml
I want to know how to solving this problem?