Results 1 to 4 of 4

Thread: web.config and aythentication error

  1. #1
    Join Date
    Mar 2005
    Posts
    163
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default web.config and aythentication error

    The error:

    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.

    The culprit (web.config stored in a subdirectory of a subdomain)

    Code:
    Line 2:  <configuration>
    Line 3:      <system.web>
    Line 4:  		<authentication mode="Forms" />
    Line 5:  		<authorization>
    Line 6:  			<deny users="?" />


    I'm guessing that I can't configure the directory as an application from helm ... any suggestions as to if I'm doing somethig wrong or its it just plain not supported?


  2. #2
    Join Date
    Feb 2004
    Posts
    4,901
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    You need to create an application - which you can do in Helm (Virtual Directories):

    Path To Virtual Directory: \
    Virtual Directory Name: subfolder
    Physical Folder: \subfolder
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  3. #3
    Join Date
    Mar 2005
    Posts
    163
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    lol Thanks, i always wandered what they were for

  4. #4
    Join Date
    Jun 2005
    Posts
    1,081
    Thanks
    4
    Thanked 15 Times in 15 Posts

    Default

    You only need to set a Virtual Directory if it is to be the application root.

    If the web.config file you are getting this error from is in a sub-directory underneath your application root then you should not be setting the Authentication Mode there. Instead set it in the web.config in your application root and use the 'Location' tags either in that web.config or a web.config in the sub-directory to specify the allow / deny rules.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Modification of IIS config by software
    By cswd in forum Development Support
    Replies: 2
    Last Post: 19th April 2006, 05:15 PM
  2. web.config question
    By theonlinecleaningshop in forum Technical Support
    Replies: 4
    Last Post: 15th March 2006, 10:09 AM
  3. Replies: 16
    Last Post: 2nd December 2005, 04:09 PM
  4. Remember to edit Web.Config when using VS2005
    By jaimalchohan in forum Technical Support
    Replies: 3
    Last Post: 9th November 2005, 12:16 PM
  5. ASP Upload Config
    By Richard Murrant in forum ASP (VBScript)
    Replies: 3
    Last Post: 5th July 2005, 05:57 PM

Bookmarks

Posting Permissions

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