Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Site subdirectory, location tag and IIS
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Site subdirectory, location tag and IIS
Miscellaneous
Thread ID:
01014019
Message ID:
01014019
Views:
56
I want pages in sub-directory mysubdir to have different authentication and authorization. So I set up the tag as follows:
<location path="mysubdir" >
  <system.web>
     <authentication mode="Forms" >
	<forms name="MyApp" path="/" loginUrl="Logon.aspx" />
     </authentication> 		
  <authorization>
     <allow users="?" />
  </authorization>
  </system.web>
</location>
But I get error message on line
     <authentication mode="Forms" >
The error is as following:
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.
Must I have the subdirectory "mysubdir" to be configured as virtual directory in IIS?

Thank you in advance for any help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform