PineCone
PineCone

Reputation: 2343

Unable to copy file "C:\...\packages\...WebApi.Core.4.0.20710.0...System.Web.Http.dll"

I am working with ASP.Net MVC4 and I am getting the following error while building the application:

Unable to copy file "C:\Visual Studio 2010\Projects\Dia\packages\Microsoft.AspNet.WebApi.Core.4.0.20710.0\lib\net40\System.Web.Http.dll" to "bin\System.Web.Http.dll". Access to the path 'bin\System.Web.Http.dll' is denied.

I don't understand what is this error being new in development. Tried to google but seems like no match cming up.

Upvotes: 1

Views: 2464

Answers (1)

Diego
Diego

Reputation: 16714

  1. Close VS.
  2. Delete bin and obj directories of each project in solution (mainly the one with the building error).
  3. Open solution in VS.
  4. Clean solution.
  5. Rebuild

Upvotes: 8

Related Questions