locked
allowDefinition='MachineToApplication' beyond application level error RRS feed

  • Question

  • User-2030899313 posted

    Hi

    I have created a website which has a main level and 2 sub categories which can only be accessed if logging in. I am using visual web developer 2008.

    So for example i have admin and prodpage as a subfolder which requires authentication. I currently have

    <location path="/Admin">
        <system.web>

          <authentication mode="Forms">
            <forms name="authCK" loginUrl="~/admin/adminlogin.aspx"               protection="All" timeout="30">
            
            </forms>
          </authentication>
             <deny users="?" />
          </authorization>
        </system.web>
      </location>

    but i get the error

    It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level

    Note:

    i have added in the main part of the config a forms authenitication but this redirects me start to the login page upon loading website which is not what i want. This part was meant for prodpage.

    <authentication mode="Forms">
          <forms name=".ASPXSIMSC" loginUrl="~/login/login.aspx"
            protection="All" path="/" defaultUrl="default.aspx" requireSSL="false" />
        
        </authentication>


    I also have a sub web.config under prodpage which basically does the following:

    </authentication>
             <deny users="?" />
          </authorization>

    I have looked around but not sure how i can resolve this.

    cheers




    Monday, March 8, 2010 4:06 AM

Answers

  • User-1853252149 posted

    Is this through the iis?

    Yes.  See www.iis.net if you need help.  Understand what the results will be when you make your folder an application.

    Jeff


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 9, 2010 3:14 PM

All replies

  • User-1853252149 posted

    http://msdn.microsoft.com/en-us/library/ms178685.aspx

    Jeff

    Monday, March 8, 2010 1:56 PM
  • User1597217033 posted

    Hello tejp ......

    I can suggest u 2 things,


    Make the Folder as Virtual Directory--by just right click the folder-->properties-->websharing

    --->Share this folder.  Give an alias name, tick all check boxes & execute..


    Hope ur  problem solved....

    Monday, March 8, 2010 9:19 PM
  • User-2030899313 posted

    Hi

    Is this through the iis?


    Tuesday, March 9, 2010 3:44 AM
  • User-1853252149 posted

    Is this through the iis?

    Yes.  See www.iis.net if you need help.  Understand what the results will be when you make your folder an application.

    Jeff


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 9, 2010 3:14 PM
  • User1597217033 posted

    hi  tejp..

    u can do it either through iis..


    open..RUN  & enter InetMgr  ...

    procede by creating an Virtual Directory...

    If ur problem solved reply me.

    Wednesday, March 10, 2010 1:29 AM