C# microsoft.identityModel' has invalid ?
 
mckmck 26. feb 2014 07:29:29 Pridružen od:
11. maj 2012
519 objav
190 45 46
#1

Pozdravljeni.



Pri ASP.NET aplikaciji mi napiše:


Warning 1   The element 'system.web' has invalid child element 'system.identityModel'. List of possible elements expected: 'anonymousIdentification, authentication, authorization, browserCaps, clientTarget, compilation, customErrors, deployment, deviceFilters, fullTrustAssemblies, globalization, healthMonitoring, hostingEnvironment, httpCookies, httpHandlers, httpModules, httpRuntime, identity, machineKey, membership, mobileControls, pages, partialTrustVisibleAssemblies, processModel, profile, roleManager, securityPolicy, sessionPageState, sessionState, siteMap, trace, trust, urlMappings, webControls, webParts, webServices, xhtmlConformance, caching'.

Stvar je v WEB.Confingu, referenco za System.IdentityModel sem dal tako, da bi moralo delati... Kakšna ideja kaj bi bilo narobe?


všeč(0) ni všeč(0) spam(0)
 
Spartacus 26. feb 2014 08:06:22 Pridružen od:
23. dec 2007
642 objav
828 38 4
#2

Te reference ne daš kot childa v system.web, ampak nivo višje, če se ne motim...



http://msdn.microsoft.com/en-us/library/hh568638(v=vs.110).aspx


všeč(0) ni všeč(0) spam(0)
 
mckmck 26. feb 2014 08:19:28 Pridružen od:
11. maj 2012
519 objav
190 45 46
#3

Točno ja pod <configSections> morem dat.

Sedaj je ok! Ko človek ne misli in ne bere je tako!



Hvala


všeč(0) ni všeč(0) spam(0)
 
mckmck 26. feb 2014 12:24:37 Pridružen od:
11. maj 2012
519 objav
190 45 46
#4

Mam še eno vprašanje.

Pri


using System.Security.Claims;

mi podčrta Claims...

Za reference sem dal System.IdentityModel ter System.Security pa še vedno je podčrtano. Kakšna ideja zakaj ?


všeč(0) ni všeč(0) spam(0)
 
Spartacus 26. feb 2014 13:07:42 Pridružen od:
23. dec 2007
642 objav
828 38 4
#5

Ker imaš verjetno target framework na 4.0 (ali manj), System.Security.Claims je pa iz 4.5


všeč(0) ni všeč(0) spam(0)
 
mckmck 26. feb 2014 13:20:02 Pridružen od:
11. maj 2012
519 objav
190 45 46
#6

LoL res je :D

Hvala

Aja še to na Visual Studiju 2010 ni mogoče uporabljati 4.5 ane?


všeč(0) ni všeč(0) spam(0)
 
Spartacus 26. feb 2014 13:47:39 Pridružen od:
23. dec 2007
642 objav
828 38 4
všeč(0) ni všeč(0) spam(0)
 
mckmck 26. feb 2014 15:14:47 Pridružen od:
11. maj 2012
519 objav
190 45 46
#8

Nič potem, po potreben prenos 2012... še dobro da sem študent in mam free.


všeč(0) ni všeč(0) spam(0)
 
 

🔒 Za odgovor na to temo se moraš prijaviti.

Prijavi se