Reputation: 4987
I installed this NuGet package through the Package Manager Console. It messed up my project and since System.Net.Http
is missing so it is impossible to build my ASP MVC WebApi project anymore.
I tried removing references to System.Web.Http.WebHost.dll
from the project and adding the previous one (that used to work) and regardless of which I used now, the Http
part of the namespace can't be found.
Have you ever had this problem ? I read trashing the project and starting from scratch solved it for others, but that's not really a solution in my book.
Any ideas ?
Upvotes: 0
Views: 295
Reputation: 4987
I trashed the project and restarted a new one (Web API). I'm just drag and dropping class files back in the new one.
It wasn't under source control. That'll teach me.
Upvotes: 0
Reputation: 4461
Try to run this in Package Manager Console:
Update-Package Microsoft.AspNet.WebApi.Cors -Reinstall
If you get any errors, comment below.
Upvotes: 1