Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict between PagedList and X.PagedList #12

Closed
ricardovsilva opened this issue Oct 28, 2015 · 4 comments
Closed

Conflict between PagedList and X.PagedList #12

ricardovsilva opened this issue Oct 28, 2015 · 4 comments

Comments

@ricardovsilva
Copy link

When you install the nugget package for X.PagedList.Mvc, it also installs PagedList. The problem is that IPagedList exists in both dlls. And that makes visual studio halt error and not compile.

@ricardovsilva
Copy link
Author

After delete PagedList.dll from references, I'm getting execution time error related to temporary files. I already deleted these temporaries but the problem persists.

The type 'PagedList.IPagedList' exists in both 'c:\Users\xxx\AppData\Local\Temp\Temporary ASP.NET Files\root\b79c1da8\6c072ce6\assembly\dl3\a5d9c6c5\d6d07659_3510d101_0\PagedList.DLL' and 'c:\Users\xxx\AppData\Local\Temp\Temporary ASP.NET Files\root\b79c1da8\6c072ce6\assembly\dl3\1556ef00\b6769801_7f11d101\X.PagedList.DLL'

@ernado-x
Copy link
Member

Plaease view updated package. I install it on new project and have no conflicts.

https://www.nuget.org/packages/X.PagedList.Mvc/

@MNeverOff
Copy link

Simply rolling new build may not help this gentleman.

I've encountered the same issue and had to do next steps:

  1. Go to view to the namespace declarations
    (@using PagedList.Mvc;
    @using PagedList;)
  2. RMD on namespace -> Go to definition,

From there you'll find the location of the PagedList .dll, which was left over by the VS for some god forsaken reason.
I deleted the DLL and everything went back to normal.

@rfolopes
Copy link

rfolopes commented Apr 16, 2019

i have this error when i create a @html.dropdownlist() => InvalidCastException: Unable to cast object of type 'X.PagedList.PagedList`1[Project_V1.Models.St]' to type 'Microsoft.AspNetCore.Mvc.Rendering.SelectList'. can anyone help me pls?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants