Why can't Visual Studio find System.Web.Mvc.resources.dll?

I keep getting these 11 errors in Visual Studio:

Error 456 Could not copy the file "_bin_deployableAssemblies\de\System.Web.Mvc.resources.dll" because it was not found. ViMuDat Error 457 Could not copy the file "_bin_deployableAssemblies\de\WebMatrix.WebData.resources.dll" because it was not found. ViMuDat Error 458 Could not copy the file "_bin_deployableAssemblies\de\WebMatrix.Data.resources.dll" because it was not found. ViMuDat Error 459 Could not copy the file "_bin_deployableAssemblies\de\System.Web.WebPages.resources.dll" because it was not found. ViMuDat Error 460 Could not copy the file "_bin_deployableAssemblies\de\System.Web.WebPages.Razor.resources.dll" because it was not found. ViMuDat Error 461 Could not copy the file "_bin_deployableAssemblies\de\System.Web.WebPages.Deployment.resources.dll" because it was not found. ViMuDat Error 462 Could not copy the file "_bin_deployableAssemblies\de\System.Web.WebPages.Administration.resources.dll" because it was not found. ViMuDat Error 463 Could not copy the file "_bin_deployableAssemblies\de\System.Web.Razor.resources.dll" because it was not found. ViMuDat Error 464 Could not copy the file "_bin_deployableAssemblies\de\System.Web.Helpers.resources.dll" because it was not found. ViMuDat Error 465 Could not copy the file "_bin_deployableAssemblies\de\NuGet.Core.resources.dll" because it was not found. ViMuDat Error 466 Could not copy the file "_bin_deployableAssemblies\de\Microsoft.Web.Infrastructure.resources.dll" because it was not found. ViMuDat 

I am trying to create a project that was developed with Visual Studio 2010, but I am using Visual Studio 2012. If I create it twice, it works without errors.

How can i fix this?

I found the ASP.NET MVC 3 Deployment Bin and _ bin_deployableAssemblies and MSBuild , but I could not fix these errors. Can someone explain step by step what should I do? I am new to C # and Visual Studio.

I think this error is also a problem, why I can not check the project in TFS.

I have these assemblies in my bin folder:

 D:\...\bin> ls Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 18.12.2012 23:53 de -a--- 15.12.2012 21:11 783648 EntityFramework.dll -a--- 15.12.2012 21:11 834489 EntityFramework.xml -a--- 18.12.2012 23:53 42496 LumenWorks.Framework.IO.dll -a--- 18.12.2012 23:53 116224 LumenWorks.Framework.IO.pdb -a--- 18.03.2010 18:31 53640 System.ComponentModel.DataAnnotati ons.dll -a--- 18.03.2010 18:31 1328984 System.Data.dll -a--- 18.03.2010 18:31 919880 System.dll -a--- 18.03.2010 18:31 24944 System.Web.Abstractions.dll -a--- 18.03.2010 18:31 2824528 System.Web.dll -a--- 05.01.2011 14:45 130408 System.Web.Helpers.dll -a--- 03.05.2012 08:55 37861 System.Web.Helpers.xml -a--- 05.01.2011 16:42 445280 System.Web.Mvc.dll -a--- 03.05.2012 08:51 777665 System.Web.Mvc.xml -a--- 18.03.2010 18:31 24928 System.Web.Routing.dll -a--- 05.01.2011 14:45 136552 System.Web.WebPages.dll -a--- 03.05.2012 08:55 51735 System.Web.WebPages.xml -a--- 18.03.2010 18:31 941904 System.Xml.dll -a--- 18.12.2012 23:53 244736 ViMuDat.dll -a--- 18.12.2012 23:53 321024 ViMuDat.pdb -a--- 18.12.2012 23:53 125308 ViMuDat.XML D:\...\bin\de> ls Mode LastWriteTime Length Name ---- ------------- ------ ---- -a--- 12.01.2011 16:04 15720 System.Web.Helpers.resources.dll -a--- 12.01.2011 17:24 32096 System.Web.Mvc.resources.dll -a--- 12.01.2011 16:04 15208 System.Web.WebPages.resources.dll 
+8
tfs visual-studio-2010 visual-studio-2012 asp.net-mvc-3 razor
source share
2 answers

If you are deploying MVC 3 using bin, there are several assemblies that you should package in your deployment. Scott Hanselman writes well about what and where.

If you copied assemblies, add the user as "content" to the Visual Studio project. They will then be automatically copied to the correct structure in the bin directory upon creation.

EDIT : This was the information in this article that helped solve the problem:

C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies and

C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies contained missing DLLs

These dll libraries had to be manually copied to the _bin_deployableAssemblies my project.

+9
source share

It may be easier for you to simply install packages through nuget .

NuGet is a package manager that makes it easy to install and update dependencies in your project. This is a Visual Studio extension that can be installed from here .

If you are still using ASP.NET MVC3, you can install an older version of the package using the Install-Package Microsoft.AspNet.Mvc -Version 3.0.20105.1 .

This will add binaries as regular links that will be included in the bin folder when building your project. This _bin_deployableAssemblies need to use the _bin_deployableAssemblies approach. Most other popular third-party frameworks (as well as many of Microsoft's new web stack) are also available on nuget.

+5
source share

All Articles