I'm currently developing a web application that uses the latest version of Umbraco (7.2) and a third party library. The problem is that my 3rd party library requires Cook Computing XML RPC V3.0 whereas Umbraco requires V2.5.
At runtime, the third party library dll which is automatically copied into the application's bin directory locates the 2.5 dll and raises an assembly load failure.
This application is to work on shared hosting, so I will have no access to the GAC (which is how I'd usually resolve this issue).
Do anyone know of an alternative workaround, does Umbraco ship with any inbuilt functionality to resolve this issue?
inside the <assemblyBinding> section of the webconfig you can add a <codeBase> element to the dependant assembly. that allows you to have multiple versions of the same dll in the solution.
the CookComputing reference isn't in the web.config but i think you can add it.
My apologies for the late reply, I've been busy on other projects so haven't had the time to take another look at this until today.
I've just tested your solution and it works perfectly, thank you very much for this! I was working on something down similar lines, but your example is much better than others I have found on line and you also took the trouble to write the config file section for me.
Dll version conflict with 3rd party library
Hi Guys,
I'm currently developing a web application that uses the latest version of Umbraco (7.2) and a third party library. The problem is that my 3rd party library requires Cook Computing XML RPC V3.0 whereas Umbraco requires V2.5.
At runtime, the third party library dll which is automatically copied into the application's bin directory locates the 2.5 dll and raises an assembly load failure.
This application is to work on shared hosting, so I will have no access to the GAC (which is how I'd usually resolve this issue).
Do anyone know of an alternative workaround, does Umbraco ship with any inbuilt functionality to resolve this issue?
Many thanks,
Damien
Hi,
you might be able to get around this in the web.config using a dependantAssembly / codebase hint http://stackoverflow.com/questions/7040432/set-location-of-dlls-to-load-in-web-config
inside the
<assemblyBinding>
section of the webconfig you can add a<codeBase>
element to the dependant assembly. that allows you to have multiple versions of the same dll in the solution.the CookComputing reference isn't in the web.config but i think you can add it.
and put the one you app needs in the app folder (although you can call this anything).
(i am not sure about that public key token)
Hi Kevin,
My apologies for the late reply, I've been busy on other projects so haven't had the time to take another look at this until today.
I've just tested your solution and it works perfectly, thank you very much for this! I was working on something down similar lines, but your example is much better than others I have found on line and you also took the trouble to write the config file section for me.
My thanks once again,
Damien
is working on a reply...