1.

I've Changed The Mapping File, But Still Get The Same Error I Was Getting Before - Why Isn't Nhibernate Reading The New Mapping File?

Answer»

If you compile the mapping files into an assembly as an /EMBEDDED Resource (my personal recommendation) and you use Visual Studio .NET 2003 for DEVELOPMENT, then you need to REBUILD the project, not just build it if all that was changed is a hbm.xml file. VS.NET will not rebuild a project if only an embedded resource has changed - so the assembly STILL contains the OLD hbm.xml file.

If you compile the mapping files into an assembly as an /Embedded Resource (my personal recommendation) and you use Visual Studio .NET 2003 for development, then you need to rebuild the project, not just build it if all that was changed is a hbm.xml file. VS.NET will not rebuild a project if only an embedded resource has changed - so the assembly still contains the old hbm.xml file.



Discussion

No Comment Found