Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Site subdirectory, location tag and IIS
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Site subdirectory, location tag and IIS
Divers
Thread ID:
01014019
Message ID:
01014019
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform