C# – update System.Web.WebPages dll

.net-assemblyasp.net-mvc-3c

I got the error CS1705:

Assembly 'PagedList.Mvc, Version=4.3.0.0, Culture=neutral, PublicKeyToken=abbb863e9397c5e1' uses 'System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' with a higher number of version than assembly 'System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35', wich is refferenced.

I want to update the System.Web.WebPages in order to get a correct reference of PagedList.MVC to System.Web.WebPages.
(as displayed in the following link at the bottom of the page:
http://msdn.microsoft.com/en-us/library/416tef0c.aspx )

Where I can find a download or something like that?

Best Answer

If you use MVC3 the better solution for you will be to download more earliest version of PagedList, because "System.Web.WebPages, Version=2.0.0.0" is used by MVC4. MVC3 will generate an error if you change Version=1.0.0.0 to Version=2.0.0.0.

The other solution is update your MVC3 project to MVC4. You may use autoupdate tool from Nuget or there are a big nomber of articles in web, how to do it by hand.