aspnet4 configuration error

Discussion in 'Getting started' started by seal, Nov 27, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I tried the VS2010 Templates ASP.NET Web Application.
    Without making any changes, it works using 'Start without debugging'.
    After uploading it fails with
    It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.

    I am aware of the other problems describing the same problem.
    I have not found anything that works for me.
    seal
     
  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    Could you provide the full error?
     
  3. Did you deploy your application to a sub-directory?

    If so you have to set that directory as an application using our web application tool.
     
  4. I did have a subdirectory. Now I picked one subdirectory, the others disappeared. How do I get them back?
    Not much to select from any menus.
     
  5. It works fine now. Thank you so much. You are a genious.
    I am a little confused about Web Application Tool.
    Can I use for it for anything. Oh well, I will read about it, and it will pop up.
     
  6. The way IIS works we have to set a root directory for your site and since it is the root to your site IIS knows to treat the root as an application and compile any applications that are present there. This is not the case for sub directories since most of the time customers place their static files and any other files in sub-directories.

    What the web application tool does is allow you to set certain directories as web applications or essentially act like a root directory for additional applications. This lets you manage multiple applications on a single account without having to purchase an additional hosting plan.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page