allowDefinition='MachineToApplication' beyond application level.

Discussion in 'ASP .Net' started by Icon Iconoclast, Nov 5, 2008.

  1. Why is this being caused and what is the solution? I am using a book that
    teaches ASP.NET 2.0 but trying out the example codes on my ASP.NET 3.5
    running the development server instead of IIS. What is the solution?



    WEB.CONFIG says:

    <authentication mode="Forms">
    <forms loginUrl="Default.aspx"></forms>
    </authentication>




    The error message says:

    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.
     
    Icon Iconoclast, Nov 5, 2008
    #1
    1. Advertisements

  2. re:
    !> Why is this being caused and what is the solution?

    The error mesage tells you that :
    "This error can be caused by a virtual directory not being configured as an application in IIS."

    You are trying to use Forms authentication in a directory
    which is not configured as an application or, at least, as a virtual directory.
     
    Juan T. Llibre, Nov 5, 2008
    #2
    1. Advertisements

  3. Icon Iconoclast

    Geek4Support_Admin

    Joined:
    Jul 5, 2012
    Messages:
    1
    Likes Received:
    0
    Geek4Support_Admin, Jul 5, 2012
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.