c# - ClaimsPrincipal.Current Visual Studio 2017 different behavior -


i running vs2012 mvc 5 project on 2017 . seems work fine except claimsprincipal.current not return same thing!!

the exact same code works on vs2012 , development , production server. although when running project vs2017 claimsprincipal.current behaves differently.

doing research found article http://davidpine.net/blog/principal-architecture-changes/

stating in .net core claimsprincipal.current should behave differently .

thing in case running exact same .net version in both ide's (4.0.30319.42000) , verified environment.version.

also hitting f12 on claimsprincipal.current navigates exact same mscorlib.dll file.

any appreciated.

found causing !

webmatrix.data.dll webmatrix.webdata.dll 

when these files present in bin folder, cause behavior . additionally overwrite razorversion , cause development server throw not matching assembly reference exceptions.

in project had reference webmatrix.webdata version 2.0.0.0

visual studio 2012 ignoring reference reason , wasn't publishing webmatrix.dll bin folder working fine.

visual studio 2017 publishing dlls bin folder , caused conflict overriding built in simple membership provider implementation.

removing reference webmatrix fixed issue.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -