Results 1 to 3 of 3

Thread: Security

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Location
    Europe, Lithuania
    Posts
    309

    Security

    Hey,

    web.conf configuration:

    Code:
     <authentication mode="Forms"> 
        <forms name="App" loginUrl="login.aspx" />
        </authentication>
    
    <authorization>
            <deny users="?" />
        </authorization>
    There are link to register.aspx in login.aspx page. This link isn't workingm becourse user isn't loged on, so register.aspx is protected by server.

    How to enable to view this page without loging on?

    Thanx

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    Code:
    <configuration>
    <location path="YourUnprotectedPage.aspx">
    	<system.web>
    		<authorization>
    			<allow users="*"/>
    		</authorization>
    	</system.web>
    </location>
    </configuration>

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Location
    Europe, Lithuania
    Posts
    309
    I got error:

    Code:
     
    Configuration Error 
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 
    
    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 40:     
    Line 41:     
    Line 42:     <authentication mode="Forms"> 
    Line 43:     <forms name="Stoju" loginUrl="index.aspx" />
    Line 44:     </authentication>
     
    
    Source File: c:\inetpub\wwwroot\PROJEKTAS\web.config    Line: 42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width