<authentication>
Jeg har lavet følgende web.config-fil i roen af mit webhotel:<configuration>
<location path="admin">
<system.web>
<authentication mode="Forms">
<forms name=".ASPXFORMSTEST" loginUrl="login.aspx" protection="All" path="/admin/" timeout="30" />
</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="admin/addlogin.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
Men får følgende fejl:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Fejlen må altså skyldes at mappen ikke er konfigureret som en application i IIS (det virker i hvert fald hvis jeg gør det localhost).
Problemet er at siden ligger på et webhotel hvor jeg har bedt dem om at lave mappen om til en applikation, og det ville være en del nemmere hvis man kunne lave authentication uden at oprette en applikation
Kan det virkelig ikke lade sig gøre ???
