How do I restrict runtime to see only bin folder to load two specific dlls
To explain the scenario better, I need my windows application to communicate with MQ server. But my constraint is that I do not want the users of the application to load MQ Client. For this I extracted two dlls from MQ client and included in my project's
bin folder and tried to conect to MQ server. It works perfectly fine if there is no MQ Client installed on the machine. But if any version of MQ Client is present on the machine, it fails.
I believe it is trying to read from the dlls present on the machine instead of reading it from bin folder and it fails for some of the older version which did not supported .NET calls.
I would want to restrict the runtime to read only two dlls and not go to load other dlls if it finds MQ Client installed.
Can <assemblybind> or probing method help me in this? If so, how to include it in my config file.
View Complete Post