Opsætning af web.config
Hej alle...Jeg vil benytte mig af forms authentication i ASP.net. min config fil ser således ud:
<authentication mode="Forms">
<forms name="LoginCookie" loginUrl="Login.aspx">
<credentials passwordFormat="Clear">
<user name="test" password="test" /> </credentials>
</forms>
</authentication>
<location path="Klassefest.aspx">
<system.web>
<authorization>
<deny users="*" />
</authorization>
</system.web>
</location>
Jeg kan ikke starte debugging og hver gang jeg starter uden debugging for jeg gølgende fejl:
Parser Error Message: Unrecognized configuration section 'location'
Source Error:
Line 64: </authorization>
Line 65:
Line 66: <location path="/KlassefestFull/KlassefestFull.aspx">
Line 67: <system.web>
Line 68: <authorization>
Jeg synes jo bare web.config overholder syntax? Har forsøgt en masse ting og rokeret om på nogen ting, men uden held. Nogen ideer?
