c# - ASP.NET Identity - Cannot resolve User -



c# - ASP.NET Identity - Cannot resolve User -

i have been next tutorial http://typecastexception.com/post/2014/02/19/aspnet-mvc-5-identity-implementing-group-based-permissions-management-part-i.aspx

i have issue application not compile because says

error 5 'microsoft.aspnet.identity.entityframework.identityuserclaim' not contain definition 'user' , no extension method 'user' accepting first argument of type 'microsoft.aspnet.identity.entityframework.identityuserclaim' found (are missing using directive or assembly reference?)

i suspect has version 1.0 vs version 2.0 of microsoft.aspnet.identity.entityframework not sure. have version 2.01 installed.

any thoughts or suggestions appreciated.

[fileloadexception: not load file or assembly 'system.web.mvc' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)] [fileloadexception: not load file or assembly 'system.web.mvc, version=5.1.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)] system.reflection.runtimeassembly._nload(assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly locationhint, stackcrawlmark& stackmark, intptr pprivhostbinder, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) +0 system.reflection.runtimeassembly.nload(assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly locationhint, stackcrawlmark& stackmark, intptr pprivhostbinder, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) +34 system.reflection.runtimeassembly.internalloadassemblyname(assemblyname assemblyref, evidence assemblysecurity, runtimeassembly reqassembly, stackcrawlmark& stackmark, intptr pprivhostbinder, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) +152 system.reflection.runtimeassembly.internalload(string assemblystring, evidence assemblysecurity, stackcrawlmark& stackmark, intptr pprivhostbinder, boolean forintrospection) +77 system.reflection.runtimeassembly.internalload(string assemblystring, evidence assemblysecurity, stackcrawlmark& stackmark, boolean forintrospection) +16 system.reflection.assembly.load(string assemblystring) +28 system.web.configuration.compilationsection.loadassemblyhelper(string assemblyname, boolean stardirective) +38 [configurationerrorsexception: not load file or assembly 'system.web.mvc, version=5.1.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)] system.web.configuration.compilationsection.loadassemblyhelper(string assemblyname, boolean stardirective) +752 system.web.configuration.compilationsection.loadallassembliesfromappdomainbindirectory() +218 system.web.configuration.compilationsection.loadassembly(assemblyinfo ai) +130 system.web.compilation.buildmanager.getreferencedassemblies(compilationsection compconfig) +170 system.web.compilation.buildmanager.getprestartinitmethodsfromreferencedassemblies() +91 system.web.compilation.buildmanager.callprestartinitmethods(string prestartinitlistpath, boolean& isrefassemblyloaded) +285 system.web.compilation.buildmanager.executepreappstart() +153 system.web.hosting.hostingenvironment.initialize(applicationmanager appmanager, iapplicationhost apphost, iconfigmappathfactory configmappathfactory, hostingenvironmentparameters hostingparameters, policylevel policylevel, exception appdomaincreationexception) +516 [httpexception (0x80004005): not load file or assembly 'system.web.mvc, version=5.1.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)] system.web.httpruntime.firstrequestinit(httpcontext context) +9915300 system.web.httpruntime.ensurefirstrequestinit(httpcontext context) +101 system.web.httpruntime.processrequestnotificationprivate(iis7workerrequest wr, httpcontext context) +254

https://github.com/milesibastos/nhibernate.aspnet.identity/blob/master/source/nhibernate.aspnet.identity/identityuserclaim.cs

here source of identityuserclaim class, can see, there user property of identityuser type.

c# asp.net-mvc asp.net-identity

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -