c# - Could not load file or assembly 'System.Web.Http.WebHost' -


after deploying mvc webpage iis following error:

could not load file or assembly 'system.web.http.webhost, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. system cannot find file specified.  

i've done following changes prevent issue:

  • set copy local = true webhost
  • added webapi 2.2 nuget
  • the system.web.http.webhost exist bin folder
  • my web.config has following dependentassembly:

code:

  <dependentassembly>     <assemblyidentity name="system.web.http.webhost" publickeytoken="31bf3856ad364e35" culture="neutral" />     <bindingredirect oldversion="0.0.0.0-5.1.0.0" newversion="5.1.0.0" />   </dependentassembly> 

i still error, doing wrong?

you may need check web config in "views" folder if have 1 make sure has proper binding redirect have in main web config.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -