Forum


HomeHomePremiumPremiumDevelopmentDevelopmentUpdating Dnn Dll FilesUpdating Dnn Dll Files
Previous
 
Next
New Post
6/12/2015 10:09 AM
 

So this week I have run into a sea of dll problems with dnn. I'm building a module based off another MVC project that uses routes. Specifically the dll's it uses that in conflict are Newtonsoft.Json (which is supposed to be fixed on the v8 release and is a known problem), System.Net.Http, System.Net.HttpFormatting, System.Web.Http, and System.Web.Http.WebHost. The last one if updated causes the add new module tab to stop functioning. I thought I'd work around this and referenced the old versions of these in my project however the code I'm working with requires a much more updated versions to function. Is there no way to use the dll without overwriting the one required for dnn to function properly?

Thanks.

 
New Post
6/15/2015 1:30 PM
 

Hi Michael,

The other day I had a similar problem and after some research I found out that you can run multiple versions of the same DLL within different folders by adding the following inside the assemblyBinding definition within the web.config:

   


       


         


         


   


I hope this code comes across properly. With this definition, the proper DLL will be loaded for your module based on the version it requires. You can use this as a reference for your own needs.

Not sure if there is a better way but I was very happy when I found out this would actually work.

Best regards,

Aderson

 
New Post
6/16/2015 4:27 AM
 

Thanks for the reply Aderson!

Unfortunately your code did not come through properly. Is there a way you can post it to me again? Thanks.

 
New Post
6/16/2015 4:36 AM
Accepted Answer 
Trying this again:

 

   <dependentAssembly>
      <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" /> 
         <codeBase version="4.5.7.15008" href="bin/Newtonsoft.Json.dll"/>
         <codeBase version="6.0.0.0" href="bin/v608/Newtonsoft.Json.dll"/>
   </dependentAssembly>


 
New Post
6/16/2015 4:40 AM
 

Thanks! I'll see what I can do with it!

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentUpdating Dnn Dll FilesUpdating Dnn Dll Files



Try FREE
30 days money back guaranteed