473,589 Members | 2,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<location>+webc onfig+IIS?

when i used <location> tag as follow;
</system.web>
<location path="members" allowOverride=" false">
<system.web>
<authenticati on mode="Forms">
<forms loginUrl="./default.aspx"></forms>
</authentication>
<authorizatio n>
<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 ='MachineToAppl ication' 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: <authenticati on mode="Forms">
Line 47: <forms loginUrl="./default.aspx"></forms>
Line 48: </authentication>
Source File: c:\inetpub\wwwr oot\KKTCEMLAK\w eb.config Line: 46

thanks in advance for any help or idea
Nov 15 '05 #1
1 2575
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.

"Cantekin Guneser" <ca************ *@hotmail.com> wrote in message news:<ek******* *******@tk2msft ngp13.phx.gbl>. ..
when i used <location> tag as follow;
</system.web>
<location path="members" allowOverride=" false">
<system.web>
<authenticati on mode="Forms">
<forms loginUrl="./default.aspx"></forms>
</authentication>
<authorizatio n>
<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 ='MachineToAppl ication' 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: <authenticati on mode="Forms">
Line 47: <forms loginUrl="./default.aspx"></forms>
Line 48: </authentication>
Source File: c:\inetpub\wwwr oot\KKTCEMLAK\w eb.config Line: 46

thanks in advance for any help or idea

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.