Re: subdirectory settings

Discussion in 'ASP .Net' started by Dave Mitchell, Jul 15, 2003.

  1. So exactly how did you solve it? I'm getting an error very similar to this
    and I've tried everything


    "Ante Perkovic" <> wrote in message
    news:...
    > Hi,
    >
    > I solved this! I skipped this part in the book:
    >
    > ****
    > An Application Can Only Use One Authentication Method
    >
    > You cannot change the <authentication> tag settings in the web.config
    > file of a subdirectory in your application. Instead, all the
    > directories in the application must use the same authentication
    > system. However, each directory can have its own authorisation rules.
    > ****
    >
    > Ante
    >
    >
    > On 23 Jun 2003 02:06:36 -0700, (Ante Perkovic)
    > wrote:
    >
    > >Hi,
    > >
    > >I created subdirectory in my application folder, but I can't watch
    > >files inside because I get error:
    > >
    > ><quote>
    > >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 5:
    > >Line 6: <!-- <authentication mode="windows" /> -->
    > >Line 7: <authentication mode="forms" />
    > >Line 8: <forms name="myCookie"
    > >Line 9: loginUrl="login.aspx"
    > >
    > ></quote>
    > >
    > >What do I have to write to web.config (in this subdirectory) for this
    > >to work properly? I suppose writing to web.config should be enough
    > >because I can't really upload some ISS setings to a remote web site.
    > >
    > >Please help! Thanks,
    > >
    > >Ante

    >
     
    Dave Mitchell, Jul 15, 2003
    #1
    1. Advertising

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. VB Programmer
    Replies:
    0
    Views:
    291
    VB Programmer
    Oct 16, 2003
  2. Scott Natwick

    Creating a Form in a subdirectory

    Scott Natwick, Oct 23, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    325
    Scott Natwick
    Oct 24, 2004
  3. Siegfried Heintze
    Replies:
    0
    Views:
    2,298
    Siegfried Heintze
    Oct 24, 2005
  4. leeanne
    Replies:
    0
    Views:
    1,890
    leeanne
    Sep 24, 2008
  5. donet programmer
    Replies:
    3
    Views:
    1,581
    Gregory A. Beamer
    Nov 20, 2009
Loading...

Share This Page