I have a asp.net website poject. I need to use several custom dll's which I can't copy into the bin directory.
I tried to create a custom bin folder and set on Application_Start PrivateBinPath in Global.asax to that directory
void Application_Start(object sender, EventArgs e) { AppDomain.CurrentDomain.SetupInformation.PrivateBinPath = Server.MapPath("~/my_DLLS"); }
then in my .cs file use a using statement to include that dll but I'm getting Compiler Error Message: CS0246: The type or namespace name 'DLLNAME' could not be found (are you missing a using directive or an assembly reference?)
I also trying to add assemblyBinding in web.config
<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath="my_DLLS" /> </assemblyBinding> </runtime>
i feel like i'm missing something.