error can be caused by a virtual directory not being configured as an application in IIS.

  • 14 years ago

     hi, my web.config file is like this

    <system.web>

        .......

    ....... 

    </system.web>



    <location path="Default.aspx">
        <system.web>
          <authorization>
            <deny users="?"/>
          </authorization>
        </system.web>
      </location>





     

    Now if i use the <location > element as bove i get 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.    

    However if i remove the location element my app works fine

    Any help is appreciated,

    Yojimbo

  • 14 years ago
    Hi there,
    1. run Internet Information Service.
    2. right-click on your virtual directory and then select Properties.
    3. Choose Directory tab.
    4. Near of Application name textbox. click on the Create button.
    5. Then set Execute Permissions to Scripts only.








  • 14 years ago

    Hi

    You please follow

    Mulish Mehdi 's instruction. That it will you out. 

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The generation of random numbers is too important to be left to chance.” - Robert R. Coveyou