MVC deployment to IIS problem logging:
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 could not find the specified file.
If you do not use WEBAPI, you can delete the WEBAPI configuration. The operation is as follows:
NuGet Package Management-"Package management console, run the following command:
Update-package Microsoft.aspnet.webapi-reinstall
failed to load file or assembly Microsoft.Web.Infrastructure, version=1.0.0.0, culture=neutral, PUBLICKEYTOKEN=31BF3856AD
There are no microsoft.web.infrastructure.dll files.
Solution Method:
, the first: in the published project file in the bin file directory, add Microsoft.web.infrastructure.dll file.
The second type: Add Microsoft.web.infrastructure.dll under System32.
The second is not practical, recommend the first solution.