Click here to Skip to main content
15,881,791 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
error:Could not 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.

My project is builded by use asp.net MVC4,EF6.0, and .net framework4.5

The guy set up the server said that he already had .net framework4.5 there, but in the application pool I only could see 4.0 and when I put the published website project over there,show error about.

Doesn't anyone know what happen? how to solve it??????????
Posted
Comments
Jineesh TR 25-Nov-14 23:35pm    
This may be the file or assembly is not there in you references..
George Jonsson 26-Nov-14 0:25am    
Well, check if the server has .Net 4.5 installed.

Please check your web.config for the version of file. Other workaround is to set reference dll property local copy as true.
 
Share this answer
 
Just register your IIS with .Net 4.5 using regiis command and you'll get to see the .net 4.5 app pool too. Assign that to your application and test.
 
Share this answer
 
Hi Jineesh,

Yes, It indeed missing file, I don't know why I published it put in IIS server won't work, but I put the developing version(it means that didn't publish it.)over there it work.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900