DNN Forums

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

Error In DNN site

 2 Replies
 1 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
Growing Member
Posts: 49
Growing Member

Hi All,

I have DNN 9.11.0 version installed. I am developing Web API which have DLL “System.Net.HTTP.Formatting” added as reference. I changed the build path of this web api to DNN site bin folder “C:\Websites\dnndev.me\bin” and have started getting error as shown below. Can any one please help me on this?

Error Message

Could not load file or assembly 'System.Net.Http.Formatting' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

FileLoadException: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.2.9.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 or one of its dependencies

Regards

Tarunjit singh

 

Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
My first check would be the version number. If you updated the DLL and created 5.2.9.1, for instance, the webconfig is looking for a file that no longer exists.
Solution: update the webconfig to the correct version number.
Growing Member
Posts: 49
Growing Member
Hi Tycho,

Thanks for the help. I have reverted Package for System.Net.HTTP.Formatting to 5.2.9 and its working fine now.

Regards
Tarunjit Singh

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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