DmitryEfimenko / TwitterBootstrapMvc

Fluent implementation of ASP.NET-MVC HTML helpers for Twitter Bootstrap.
Apache License 2.0
224 stars 79 forks source link

Errors with System.Web.MVC 5.2.3.0 #397

Closed oceanexplorer closed 8 years ago

oceanexplorer commented 8 years ago

I am currently using TwitterBoostrapMVC with Bootstrap3. I have had cause to update an existing project to System.Web.MVC 5.2.3.0, which is currently the latest version. Everything runs fine apart from the fact when I get lots of squiggles with the following error:

Assuming assembly reference "System.Web.Mvc, Version 5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 used by TwitterBootstrapMVC5 matches identity "System.Web.Mvc, version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 of 'System.Web.Mvc', you may need to supply runtime policy

I'm guessing this is because TwitterBootstrapMvc uses version 5.0.0.0 of System.Net.Mvc. I would normally apply a binding redirect on the assembly, but this seems to have no effect when placed in Views/web.config

Do you have any suggestions to make this go away? Is the only option to revert to System.Web.Mvc 5.0.0.0

Thanks

Paul

DmitryEfimenko commented 8 years ago

I just started a fresh new project with the system.web.mvc of version 5.2.3.0 installed and everything worked like a charm. Could you reproduce this error when starting a new project?

oceanexplorer commented 8 years ago

I have closed the issues as it would seem that something went awry in our project when we upgraded from .Net 4.5 to .Net4.6. I'm still not sure what was causing the issues but we ported the project across to an empty .Net 4.6 ASP.NET project and it has rectified the issue.

DmitryEfimenko commented 8 years ago

glad to hear!