web.config authentication problem

Discussion in 'ASP .Net Web Controls' started by Mr. x, Dec 13, 2003.

  1. Mr. x

    Mr. x Guest

    I have in the web.config file something like this :

    <configuration>
    <system.web>
    <authentication mode="Forms">
    <forms name=".ASPXAUTH" loginUrl="main.aspx" protection="All"
    timeout="1" path="/" requireSSL="false" slidingExpiration="true">
    </forms>
    <passport redirectUrl="internal" />
    </authentication>
    </system.web>
    </configuration>

    When I try to open main.aspx I get the error :
    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.

    The same error is on my computer, and also on hosting computer.

    Why ?

    Thanks :)
     
    Mr. x, Dec 13, 2003
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mr. x

    web.config authentication problem

    Mr. x, Dec 13, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    4,406
    Mr. x
    Dec 13, 2003
  2. =?Utf-8?B?RGFuaWVs?=

    Machine.config & web.config

    =?Utf-8?B?RGFuaWVs?=, Jan 18, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    14,050
    Hermit Dave
    Jan 18, 2004
  3. =?Utf-8?B?QXVndXN0aW4gUHJhc2FubmEuIEo=?=

    Web.Config Get Config settings at runtime.

    =?Utf-8?B?QXVndXN0aW4gUHJhc2FubmEuIEo=?=, Feb 5, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    2,499
    Kevin Spencer
    Feb 6, 2004
  4. Bob
    Replies:
    7
    Views:
    1,189
    Saravana [MVP]
    May 5, 2004
  5. Benny Ng
    Replies:
    9
    Views:
    10,953
    Benny Ng
    Oct 13, 2005
  6. CSharpner
    Replies:
    0
    Views:
    1,415
    CSharpner
    Apr 9, 2007
  7. Shailesh

    web.config and authentication problem.

    Shailesh, Jun 10, 2004, in forum: ASP .Net Security
    Replies:
    2
    Views:
    264
    Shailesh
    Jun 11, 2004
  8. Shailesh

    web.config and authentication problem.

    Shailesh, Jun 10, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    156
    Shailesh
    Jun 10, 2004
Loading...