Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Mutiple Web Configure File Problem

Mutiple Web Configure File Problem

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpwindows-adminsecurity
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 3699209
    wrote on last edited by
    #1

    Hi All, I need to use different login forms for different folders with forms authentication. So i am using different web.config for each folder. Now if i write authentication tag in any sub folder's web.config it shows this error. (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.) I need it urgent, can u help. Thanks in advance.

    N S P 3 Replies Last reply
    0
    • M Member 3699209

      Hi All, I need to use different login forms for different folders with forms authentication. So i am using different web.config for each folder. Now if i write authentication tag in any sub folder's web.config it shows this error. (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.) I need it urgent, can u help. Thanks in advance.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      One it would be helpful to see what elements you trying to use in the web.config files. Two, saying it is urgent is very rude. This is a volunteer site and people will answer, if at all, on their time, not yours.


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • M Member 3699209

        Hi All, I need to use different login forms for different folders with forms authentication. So i am using different web.config for each folder. Now if i write authentication tag in any sub folder's web.config it shows this error. (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.) I need it urgent, can u help. Thanks in advance.

        S Offline
        S Offline
        souidi abderrahman
        wrote on last edited by
        #3

        maybe you need to look to the property of allowDefinition in your machine.config (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG/machine.config)?? it must be set to MachineToApplication.

        1 Reply Last reply
        0
        • M Member 3699209

          Hi All, I need to use different login forms for different folders with forms authentication. So i am using different web.config for each folder. Now if i write authentication tag in any sub folder's web.config it shows this error. (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.) I need it urgent, can u help. Thanks in advance.

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          If you have web.config files in lower level directories, these directories must be Applications in IIS as well.

          I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

          Forgive your enemies - it messes with their heads

          My blog | My articles | MoXAML PowerToys | Onyx

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups