I thought this would be simple but maybe its me!!!
I have a web application and deploy to various servers. I have had issues with other development teams upgrading Oracle etc so I decided to copy the Oracle Drivers I need into a sub folder called Lib.
So what I what to do is have my my Dll's in Bin, that reference the Oracle Dll's... load them from the Lib sub folder... Bin\Lib
The main Oracle Dll is the Oracle.DataAccess.dll and I have the OCI.dll etc all in the same folder.
I tried adding the section
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="lib" />
</assemblyBinding>
</runtime>
but it failed to load the Dll.
I dont want to use reflection or anything that dynamically loads them, I dont want to set the path or use the GAC. I simply want my Dll to access the Oracle Dll's in the Lib folder.
I have a few Projects that compile into DLL's that are part of my web site.
Has anyone got a clue on this as I've tried most of this. I used to thing that the CLR would search the main directory first and then sub directories but this doesnt seem to be the case.