• Login
  • Register

DNN Forums

A community discussion page. We're starting from scratch, so...let's get the party started!

Version conflict Microsoft.AspNet.WebApi.Client

You are not authorized to post a reply.

New Member

New Member

    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.

    Basic Member

    Basic 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 Member

      New Member

        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 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. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
        2. 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.
        3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
        4. No Flaming or Trolling.
        5. No Profanity, Racism, or Prejudice.
        6. Site Moderators have the final word on approving / removing a thread or post or comment.
        7. 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