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
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to fix the error "It is an error to use a section registered as allowDefinition='MachineToApplication'

How to fix the error "It is an error to use a section registered as allowDefinition='MachineToApplication'

Scheduled Pinned Locked Moved ASP.NET
helpquestionsysadminwindows-adminhosting
2 Posts 2 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.
  • N Offline
    N Offline
    nilam2477
    wrote on last edited by
    #1

    Hello, I have hosted my web application on the server. It works fine when i have one copy of the Website. My requirement to create multiple copies of websites in the sub directories. I need the same copy of web.config in my subdirectories as well. But when i access website from subdirectory i get the following error " It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level'" I know that i need to set the subdirectory as Virtual folder and if i do that in my local IIS it works. But how do i do this on the Web hosting server? Please help Thanks

    R 1 Reply Last reply
    0
    • N nilam2477

      Hello, I have hosted my web application on the server. It works fine when i have one copy of the Website. My requirement to create multiple copies of websites in the sub directories. I need the same copy of web.config in my subdirectories as well. But when i access website from subdirectory i get the following error " It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level'" I know that i need to set the subdirectory as Virtual folder and if i do that in my local IIS it works. But how do i do this on the Web hosting server? Please help Thanks

      R Offline
      R Offline
      R Giskard Reventlov
      wrote on last edited by
      #2

      Google[^]?

      "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

      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