locked
Error web.config of sub-directory, Server is the company server RRS feed

  • Question

  • User-1211710739 posted

    Hi all,

    I tried to create a sub-directory website of my company website. I even copy a folder (for example Client) and named it Client1. The website Client is ok but when I run Client1, I received this error " 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". Below is the detail of the error:

    Parser Error Message: 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.

    "Line 72:     <authentication mode="Forms" > "

    More 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. (D:\webs\sub_domains\Client1\web.config line 87)

    My company's website has many sub-directory websites and most of them have their own web.config but the root does not have web.config (files at the root are .asp). The server is the company server which I can access to the database (SQL 2008).

    I research and it looks like to me I had to create a virtual directory for the sub-folder. My question is how I can do that while the server is not on my local computer? Or something else I can do to resolve this problem? Please help!

    Wednesday, March 13, 2013 5:48 PM

Answers

  • User-1716253493 posted
    you need confgure client1 as an application. you should add application instead add virtual directory.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, March 13, 2013 6:55 PM