Error in subdirectory web.config file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Azaz ulhaq
    New Member
    • Oct 2010
    • 1

    Error in subdirectory web.config file

    Hi

    I'm having two web.config files, one in my root directory(where all web pages of a project are found) and other in admin directory(that is located in root directory).
    But whenever I try to write <authentication >...</authentication> tag in web.cofig file that is in admin directory, I face the following error on building my project

    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.

    please help!
    Last edited by Frinavale; Oct 7 '10, 05:06 PM. Reason: Fixed code tags.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    The first thing I would do is make sure that the virtual directory for the website is configured as an Application in IIS....as the error recommends.

    If that isn't the problem, could you please post the XML for the web.config that is causing the problem.

    -Frinny

    Comment

    Working...