« Previous Next »

Thread: Error message: authentication mode="Forms" _ Solved

Last post 10-22-2009 10:14 AM by tomkmvp. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 05-17-2008, 6:36 AM

    • spa
    • Not Ranked
    • Joined on 02-09-2007, 2:20 PM
    • Posts 9

    Error message: authentication mode="Forms" _ Solved

    Hi all,

    Could anyone please help me to see what should do here?

    I am using XP, trying to test a website using the local IIS, and I got the following error message:

    Server Error in '/' Application.

    Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    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.

    Source Error:
     Line 14:                 <compilation defaultLanguage="c#" debug="true"/>Line 15:                 <pages enableEventValidation="false" validateRequest="false" smartNavigation="false"/>Line 16:                 <authentication mode="Forms">Line 17:                             <forms name=".YAFNET_Authentication" timeout="525600"/>Line 18:                 </authentication>


    Source File: c:\inetpub\wwwroot\yetanotherforumnet\web.config    Line: 16

    Appreciate your helps. Thanks. 
  • 05-18-2008, 11:08 PM In reply to

    Re: Error message: authentication mode="Forms" _ Solved

    Go into IIS Manager and mark the virtual directory as an application.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 10-13-2009, 10:53 AM In reply to

    • Elrinth
    • Not Ranked
    • Joined on 05-19-2008, 12:45 PM
    • Posts 2

    Re: Error message: authentication mode="Forms" _ Solved

     and if I'm running it in visual studio how do I solve this?

  • 10-13-2009, 11:29 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,229
    • IIS MVPs

    Re: Error message: authentication mode="Forms" _ Solved

  • 10-22-2009, 3:52 AM In reply to

    • Elrinth
    • Not Ranked
    • Joined on 05-19-2008, 12:45 PM
    • Posts 2

    Re: Error message: authentication mode="Forms" _ Solved

    I'm not using IIS to serve my webpage but Visual studios built in proggie ASP.NET Development Server.

    How do I get the forum running within visual studio? ie not needing to put it on a webserver.

    I successfully did it within it's own solution. But when adding it to an already existing site. Putting the forum in a subfolder, copying all bins to the root bin and copying all the settings into root webcfg tho putting a location path="forum" tag around it's system.web part. Then it won't allow it to go passed the authentication mode="Forms" part. Same error message as this guy.

    Solution?! fiddle in IIS according to previous guy. But since I want this running in VS, how do I do that?

  • 10-22-2009, 10:14 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,229
    • IIS MVPs

    Re: Error message: authentication mode="Forms" _ Solved

    Elrinth:
    How do I get the forum running within visual studio?

    Since this is an IIS forum, I have no idea. 

    What forum software are you trying to run?  The best place to get an answer would be on their support forum, don't you think?

     

Page 1 of 1 (6 items)
Microsoft Communities