NHibernate and external DLLs

Aug 17, 2015 at 5:41 AM

I am trying to use NHibernate to access a custom database.
Everything works if I run the script as a stand alone executable. However if I run this as a plugin script, I get errors.

The errors only indicate that the external DLLs that the plugin requires are not visible. Also all dlls are sitting in the same folder where the scrip.esapi.dll sits.

Is there a way to specify custom path where the DLLs should be searched.

Sounds like the default path for execution is set to where External beam planning executables are instead of the place where the script is being loaded from.
Aug 27, 2015 at 10:13 PM
Could you post what the error says exactly? Also, are you running the stand-alone plug-in on the same system as the binary plug-in?

I've written binary plug-in scripts with external dependencies (e.g., OxyPlot) and haven't had a problem with the DLL not being found. When the assembly is loaded by Eclipse, external dependencies should be searched in the local directory of the assembly.