Forms Authentication in a subfolder

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Forms Authentication in a subfolder

    Our web site is mostly classic ASP. I recently created a small ASP.NET
    application that will reside in a subfolder a few levels deep. I want to
    use forms authentication within this subfolder.

    I had it all working just fine on my local WinXP box. But when I move it
    out to our Win2K staging server I cannot access the application. It get the
    error below. I took a look at the machine.config on the server and it does
    indeed have allowDefinition="MachineToApplication" for authentication. I
    tried changing it to Everywhere with no success.

    On advice I found in other newsgroups I have verified that in IIS I created
    a virtual directory for this app and that it is in fact setup as an
    application.

    It must be possible to use forms authentication in this scenario. What can
    I do to make this work?

    -Brett-

    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 59: by Microsoft that offers a single logon and core profile
    services for member sites.
    Line 60: -->
    Line 61: <authentication mode="Forms">
    Line 62: <forms
    Line 63: loginUrl="login.aspx"

    Source File: C:\Webs\CorpWeb\products\imagebridge\myImageBridge \web.config
    Line: 61


    Brett Robichaud Guest

  2. Similar Questions and Discussions

    1. Accessing htm files without authentication (forms authentication)
      I have application with forms authentication. All works fine. When user opens .aspx file gets login form, login and then get the .aspx page. But...
    2. how to by-pass forms authentication in a subfolder
      Hello, I have an application with forms authentication setting specified in the web.config of the app root; so all users must login before they...
    3. Forms authentication in a subfolder problem, please help
      Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain...
    4. Forms authentication then redirection to a secure web with NT authentication?
      Hi, I want to allow access to particular secured intranet web sites. These intranet are stored in sharepoint (2003 version) Actually I've...
    5. Forms authentication for subfolder yields 404
      Thanks for all the help! I solved the problem. "joe" <contact_by_Newsgroup_only.please> wrote in message...
  3. #2

    Default RE: Forms Authentication in a subfolder

    Hi Brett,

    I'm viewing this post and find it is a duplicated one ou posted with
    another in the
    microsoft.public.dotnet.framework.aspnet. newsgroup. with the similiar
    title. And a community member and I have both posted a reply in that one.
    Please have a check on them. In addition, would you think it convenient
    that we continue to disscuss in that thread? If so, please feel free to
    post there if you have any questions or have any new findings. Thanks.


    Regards,

    Steven Cheng
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    Get Preview at ASP.NET whidbey
    [url]http://msdn.microsoft.com/asp.net/whidbey/default.aspx[/url]

    Steven Cheng[MSFT] Guest

  4. #3

    Default Re: Forms Authentication in a subfolder

    Yes we can continue in the other thread. I only posted here when I realized
    there was a specific ASPNET security group. Thanks.

    "Steven Cheng[MSFT]" <v-schang@online.microsoft.com> wrote in message
    news:O59vMotHEHA.132@cpmsftngxa06.phx.gbl...
    > Hi Brett,
    >
    > I'm viewing this post and find it is a duplicated one ou posted with
    > another in the
    > microsoft.public.dotnet.framework.aspnet. newsgroup. with the similiar
    > title. And a community member and I have both posted a reply in that one.
    > Please have a check on them. In addition, would you think it convenient
    > that we continue to disscuss in that thread? If so, please feel free to
    > post there if you have any questions or have any new findings. Thanks.
    >
    >
    > Regards,
    >
    > Steven Cheng
    > Microsoft Online Support
    >
    > Get Secure! [url]www.microsoft.com/security[/url]
    > (This posting is provided "AS IS", with no warranties, and confers no
    > rights.)
    >
    > Get Preview at ASP.NET whidbey
    > [url]http://msdn.microsoft.com/asp.net/whidbey/default.aspx[/url]
    >

    Brett Robichaud Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139