Re: Nhibernate

Tech-Archive recommends: Fix windows errors by optimizing your registry




"IceMan" <andreas.skaar@xxxxxxxxx> wrote in message
news:1178798174.443203.63140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I am using the configuration object and passing it a Assembly object
to load. The assembly object i pass in is from a dll which is in a
different folder then the Nhibernate dll.

The AddAssembly(Assembly assembly) function throws me an Error saying
it can't load the configuration hbm.xml file because it can't load the
assembly in the hbm.xml file.

Why does NHibernate try to load the Assembly again??


I think NHibernate tries to load the mapping files from the assembly when
using Configuration.AddAssembly(Assembly asm). Has the hbm.xml file been
compiled into the assembly as an Embedded Resource?



.



Relevant Pages

  • Re: Nhibernate
    ... "AppDomain.CurrentDomain.AssemblyResolve" and looking for the dll my ... NHibernate does not try to reload the assembly. ... I am using the configuration object and passing it a Assembly object ... it can't load the configuration hbm.xml file because it can't load the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Nhibernate
    ... I am using the configuration object and passing it a Assembly object ... different folder then the Nhibernate dll. ... it can't load the configuration hbm.xml file because it can't load the ...
    (microsoft.public.dotnet.languages.csharp)
  • Is my dll as .NET assembly?
    ... I wish to determine at runtime whether a dll file is a .Net asembly or COM. ... I could try and load it into an assembly object and trap the exception ... Prev by Date: ...
    (microsoft.public.dotnet.framework.interop)
  • Nhibernate
    ... I am using the configuration object and passing it a Assembly object ... different folder then the Nhibernate dll. ... it can't load the configuration hbm.xml file because it can't load the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: running a service/driver/application upon startup
    ... debug version of the image is too large to load onto the device. ... I ran dumpbin/exports on the finger dll and saw the required function names: ... > theories as to why it's not getting loaded but just doing 'services load ...
    (microsoft.public.windowsce.embedded)