2011. március 4., péntek

Nhibernate és a debug kód

Nhibernate-nél problémát okozhat induláskor, ha debug kódot fordítunk, és Visual Studioban a Debug/Exceptions menüpont alatti dialógus ablakban a Managed Debugging Assistants-nél be van pipálva a Thrown.

A kivétel szövege:

„The assembly with display name 'NHibernate.XmlSerializers' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'NHibernate.XmlSerializers, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The system cannot find the file specified.”

Ennek érdekessége, hogy debugger nélkül (Ctrl+F5-tel) elindítva a debug kódot tartalmazó programot az egyszerűen csak kidobja a jackpotot, elszáll.


Nincsenek megjegyzések:

Megjegyzés küldése