1

I want to run a test-porject (with the usage of NHibernate).

I configured NH in the app.config.

Why do I get this error?

Could not find file 'C:\Users\elad\Documents\Visual Studio 2010\Projects\SVN\UGI\Ugi\MetadataServiceTest\bin\Debug\hibernate.cfg.xml'.

Elad Benda
  • 35,076
  • 87
  • 265
  • 471

1 Answers1

2

Make sure hibernate.cfg.xml is set as content and copy to output directory.

jasonp
  • 410
  • 4
  • 6
  • the config in web.config is not enough? – Elad Benda Nov 30 '11 at 07:40
  • 1
    NHibernate can be configured either way, Web/App.config or hibernate.cfg.xml. If you have the settings in the Web.config, then you don't need the hibernate.cfg.xml. – jasonp Nov 30 '11 at 17:16