2PTTechnology

The platform that enables you to build rich, interactive communities
Welcome to 2PTTechnology Sign in | Join | Help
in Search

C# error allowDefinition='MachineToApplication' beyond application level virtual directory not being configured

Last post 12-27-2007, 5:08 PM by admin. 4 replies.
Sort Posts: Previous Next
  •  01-10-2007, 10:56 PM 1

    C# error allowDefinition='MachineToApplication' beyond application level virtual directory not being configured

    Im getting an 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 and application in IIS.

    Any Ideas?

    Ive gone to the virtual directory on IIS, to the properties to "Create" an Application Name, but the Application Name already exists.

  •  01-11-2007, 11:32 AM 2 in reply to 1

    Re: C# error

    This error could be caused by having a project that has another project embedded inside the folder structure and the projects location is set to File System instead of HTTP.  To resolve this issue you would have to open the main .SLN file in notepad and replace the sections:

    Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "C:\...\MySite\", "C:\Inetpub\wwwroot\MySite",

     with

    Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "http://localhost/MySite/", "http://localhost/MySite",

    and also if missing, add


      SlnRelativePath = "c:\inetpub\wwwroot\MySite\"

  •  01-15-2007, 12:39 PM 6 in reply to 2

    Re: C# error

    Cool that worked. Thanks!!

  •  12-27-2007, 1:12 AM 103 in reply to 1

    Re: C# error allowDefinition='MachineToApplication' beyond application level virtual directory not being configured

    Any one got solution for this........ Please let me know?

    twaligora:

    Im getting an 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 and application in IIS.

    Any Ideas?

    Ive gone to the virtual directory on IIS, to the properties to "Create" an Application Name, but the Application Name already exists.

  •  12-27-2007, 5:08 PM 105 in reply to 103

    Re: C# error allowDefinition='MachineToApplication' beyond application level virtual directory not being configured

    did you try to open the .SLN file in notepad and replace the sections like shown above
View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems