What is "Could not locate the assembly" error?
**c:\Windows\Microsoft开发者_如何学JAVA.NET\Framework\v3.5\Microsoft.Common.targets(0,0): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
an any body tell me what is this message?
When I am deploying my ASP.net MVC application using TFS i am getting this error message?
I suspect that this mean that you don't have MVC2 installed on the target machine and it's warning you that when the app is compiled there it will fail.
Maybe you need to install MVC 2 on the computer you are deploying to.
Set "Copy Local" to "true" on the System.Web.Mvc in the References of your project and deploy with System.Web.Mvc.dll in your bin folder.
精彩评论