Failed to load file or assembly "System.Web.Http.WebHost, version=4.0.0.0," or one of its dependencies. The system cannot find the file specified.

Source: Internet
Author: User
Tags webhost

One: Error message

"Failed to load file or assembly" System.Web.Http.WebHost, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35 "or one of its dependencies. The system cannot find the file specified. ”

"Failed to load file or assembly" System.Web.Http, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35 "or one of its dependencies. The system cannot find the file specified. ”

"Failed to load file or assembly" System.Net.Http.Formatting, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35 " Or one of its dependencies. The system cannot find the file specified. ”

II: Solutions

When the MVC4 website is released, it pops up when deployed on the server. At the time I thought it was not published, and it was released again, but it was still a mistake. Led to the verification there has been no success, and finally found a solution.

What files are missing to put into the project, found the previous project in the Webhost,http, http.formatting files, placed in the bin directory, reconfigure, so good.

DLL Download Path: http://files.cnblogs.com/files/netxiaohui/DLL.zip

Failed to load file or assembly "System.Web.Http.WebHost, version=4.0.0.0," or one of its dependencies. The system cannot find the file specified.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.