转换为MVC3 - 一些视图仍然需要'System.Web.Mvc,Version = 1.0.0.0,

时间:2010-12-26 20:43:32

标签: asp.net-mvc-3

我已经使用了发行说明中的​​说明并且能够浏览大多数页面 - 我的单元测试并不全面,但大多数都通过了。但是......当我尝试编辑现有用户或创建新用户时,我收到下面粘贴的错误 - 请注意它的引用版本= 1 ... - 此项目以v1开始生命并在之后转换为mvc2 RTM。

我仍在使用V2项目,但不再使用任何v1。我应该接受GAC清洗吗?

Server Error in '/' Application.
Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 

=== Pre-bind state information ===
LOG: User = STUDIO11\mUser
LOG: DisplayName = System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/Users/C:\Users\[path to project]/
LOG: Initial PrivatePath = C:\Users\[path to project]\bin
Calling assembly : App_Web_qcjylaoc, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\[path to project]\web.config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.

1 个答案:

答案 0 :(得分:1)

三次检查并发现虽然解决方案的web.config具有必需的绑定重定向块,但_project的web.config却没有。仍然认为有些页面可以正常工作而有些页面无效。