DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Version conflict Microsoft.AspNet.WebApi.Client

Sort:
You are not authorized to post a reply.





New Around Here





    Hellow together, I am recently developing some modules. One problem I meet now is the version conflict of "Microsoft.AspNet.WebApi.Client", In latest DotNetNuke 9.6.2 many projects (DotNetNuke.Web, Dnn.PersonalBar and etc.) reference this assembly of version 5.2.3. But in my project I used a cloud service, which referenced the same assembly of version 5.2.4.

    I can build my project successfully but got the waring of assembly version conflict in visual studio. And at runtime my module failed and got an error message that I need "System.Net.Http.Formatting.dll" version 5.2.4. 

    And if I replace the orginal assembly withe the version 5.2.4, my module works without issue. But there is an issue with DNN that I have no personal bar for administrator.

    Anyone can give some suggestion how to resolve this problem? Thank you in advance.






    Advanced Member





      Did installing your project add a binding redirect in the web.config? If there's one in there, then your error must mean that the Persona Bar really requires 5.2.3 and can't use newer versions. If you find that this is the case, you can try to investigate where that requirement is, and see if it can be mitigated (without being a breaking change). We would accept a pull request with a fix like that.

      Otherwise, adding a binding redirect may resolve the issue. I believe the plan is for the core to update many of these dependencies for DNN 10.0.0. Hope it helps!
      DNN partner specializing in custom, enterprise DNN development https://engagesoftware.com/showcase





      New Around Here





        Thank you Brian for your answer.
        Binding redirect can not resolve this issue, because the version of 5.2.4 is not backwards compatible with version 5.2.3. 

        You are not authorized to post a reply.

        These Forums are dedicated to the discussion of DNN Platform.

        For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

        1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
        2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
        3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
        4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
        5. No Flaming or Trolling.
        6. No Profanity, Racism, or Prejudice.
        7. Site Moderators have the final word on approving / removing a thread or post or comment.
        8. English language posting only, please.

        Would you like to help us?

        Awesome! Simply post in the forums using the link below and we'll get you started.

        Get Involved