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.