开发者

assembly problem asp.net mvc / mvc contrib

开发者 https://www.devze.com 2023-01-06 06:49 出处:网络
I am using the s#arp framework and want to use the latest mvc contrib. This means that I have to use asp.net mvc 2.0. So I refrenced the latest 2.0 dll for mvc 2.0 and the latest mvc contrib dll but s

I am using the s#arp framework and want to use the latest mvc contrib. This means that I have to use asp.net mvc 2.0. So I refrenced the latest 2.0 dll for mvc 2.0 and the latest mvc contrib dll but still get this error:

Error 1 Assembly 'MvcContrib, Version=2.0.36.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' c:\Users\bla\Downloads\MVCContrib.release(2)\MvcContrib.dll Bla.Web.Controllers

I checked the mvc dll in my controller project and it is version 2.0. what else can I do?

Thanks!

Ch开发者_如何学运维ris


Chris, I would unload any of the projects that reference System.Web.Mvc and edit them to make sure they are

  • Pointed to the proper version of System.Web.Mvc at the location in the /lib
  • Are not pointed to the global version (gac)


Christian, did you also replace it in your web project? Anywhere 1.0 was referenced, you would need to replace it. In addition, you might need to add an assembly binding redirect from 1.0 to 2.0.

0

精彩评论

暂无评论...
验证码 换一张
取 消