Previous Next

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

Last post 05-16-2008 9:34 AM by dontjee. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 05-13-2008, 11:13 AM

    • dontjee
    • Not Ranked
    • Joined on 05-13-2008, 2:57 PM
    • Posts 5

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

     Hi,

    I'm getting this error message and I'm not sure why. I only get the error in Visual Studio, I can access the website and login just fine. The directory is configured as an application in IIS, but it isn't the root directory, it is a sub directory. My web.config file looks like this.

    <configuration>
      <system.web>
        <authentication mode="Forms">
          <forms name="instructor" loginUrl="/instructor/login.aspx" path="/instructor" protection="All" timeout="30"></forms>
        </authentication>
        <authorization>
          <deny users="?"/>
          <allow users="*"/>
        </authorization>
      </system.web>
    </configuration>


    Any ideas why? Thanks. 

  • 05-13-2008, 11:16 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Lawrenceville, NJ
    • Posts 4,038
    • IIS MVPs

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

  • 05-13-2008, 11:32 AM In reply to

    • dontjee
    • Not Ranked
    • Joined on 05-13-2008, 2:57 PM
    • Posts 5

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

    I followed the steps outlined on that page, but I'm still getting the error message. Any other ideas? 

  • 05-15-2008, 11:19 PM In reply to

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

    Hi dontjee,

    Is the error in the same line? 

    dontjee:
        <authentication mode="Forms">

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 05-16-2008, 9:34 AM In reply to

    • dontjee
    • Not Ranked
    • Joined on 05-13-2008, 2:57 PM
    • Posts 5

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

    Yes, the error is on the <authentication mode="Forms"> line. 

Page 1 of 1 (5 items)
Page view counter