cazlouise cazlouise - 1 month ago 17
C# Question

Could not load file or assembly 'System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken

I have tried anything i could regarding this issue by setting the custom error as OFF. Basically what i am trying to do is deploying my application to a server however i keep getting this error, which stops me on accessing the application. its my first time seeing this error.

I could really do with some help.
Thank you in advance.

enter image description here

Answer

I think this might help you.

select the System.Web.Http.Webhost assembly in your references and alter the 'Copy Local' property to True. This site might give you an idea : http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx/