mschenuer wrote:
Assembly DataLayer = Assembly.Load("DataLayer");
cfg.AddResource("MyCompany.AppName.DataLayer.Employees.hbm.xml", DataLayer);
but I got an error in this case (assembly not found). But according to all I know, you have to specify the RESOURCE NAME, which is <namespace>.<resourcename> and this is what I specified here (yet it seems NHibernate tried to derive the assembly name from the resource name, which fails in this case).
No, NH just passes the resource name to Assembly.GetManifestResourceStream unchanged. Your problem is that either Assembly.Load call failed, or the resource name is wrong.