<location>+webconfig+IIS?

C

Cantekin Guneser

when i used <location> tag as follow;
</system.web>
<location path="members" allowOverride="false">
<system.web>
<authentication mode="Forms">
<forms loginUrl="./default.aspx"></forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<appSettings>
i faced with folloving error
Parser Error Message: 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.

Source Error:

Line 44: <location path="members" allowOverride="false">
Line 45: <system.web>
Line 46: <authentication mode="Forms">
Line 47: <forms loginUrl="./default.aspx"></forms>
Line 48: </authentication>


Source File: c:\inetpub\wwwroot\KKTCEMLAK\web.config Line: 46

thanks in advance for any help or idea
 
J

Joey Powell

I have had success in putting the authentication information at the
top and then separating the <location/authorization/allow/deny> stuff
under that, in a separate <location> location. That works for me
anyways.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top