Bug: <authentication mode="Forms"> ???

Last post 11-13-2009 6:13 AM by sbyard. 9 replies.

Sort Posts:

  • Bug: <authentication mode="Forms"> ???

    11-11-2004, 7:04 AM
    • Member
      40 point Member
    • Reinaut
    • Member since 11-09-2004, 1:17 PM
    • Posts 8
    >When simply opening a map in the Cassini web server I get the following error (look >beneath it to see the translation I made in English)
    >the eroor occured on Line 20

    Configuratiefout
    Beschrijving: Er is een fout opgetreden tijdens het verwerken van een configuratiebestand dat vereist is om aan deze aanvraag te voldoen. Raadpleeg de hieronder weergegeven details van deze fout en pas uw configuratiebestand overeenkomstig aan.

    Parser-foutbericht: Een sectie die is geregistreerd als allowDefinition='MachineToApplication' mag niet worden gebruikt buiten het toepassingsbereik. Deze fout kan worden veroorzaakt doordat een virtuele map niet is geconfigureerd als toepassing in IIS.

    Fout in bron:


    Regel 18: <authentication mode="Windows"> section. -->
    Regel 19:
    Regel 20: <authentication mode="Forms">
    Regel 21: <forms name=".ASPXAUTH" protection="All" timeout="60" />
    Regel 22: </authentication>


    Bronbestand: C:\Inetpub\wwwroot$\PortalVBVS\PortalVBVS\web.config Regel: 20


    --------------------------------------------------------------------------------
    Versiegegevens: Microsoft .NET Framework Versie:1.1.4322.2032; ASP.NET Versie:1.1.4322.2032

    >Here is my translation in English:

    Configuration error
    Description: An error has occured while processing a configuration file, necessary to answer your request. See the details beneath and change your configuration file accordingly.

    Parser-errormessage: A section registred as allowDefinition='MachineToApplication' can not be used outside the applicationrange. This error can be caused by a virtual map not being configurated as application in IIS.

    Error in source:


    Line 18: <authentication mode="Windows"> section. -->
    Line 19:
    Line 20: <authentication mode="Forms">
    Line 21: <forms name=".ASPXAUTH" protection="All" timeout="60" />
    Line 22: </authentication>


    SourceFile: C:\Inetpub\wwwroot$\PortalVBVS\PortalVBVS\web.config Line: 20


    --------------------------------------------------------------------------------
    Versioninformation: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032

    I think the eroor is rather weird because I use Windows Xp Home Edition and I don't have IIS installed. As you can see the error occured when I was trying to open the map of the PortalVBVS exemple in the Cassini webserver.
  • Re: Bug: <authentication mode="Forms"> ???

    11-12-2004, 1:02 PM
    • Contributor
      2,680 point Contributor
    • imleggy
    • Member since 05-05-2003, 2:09 PM
    • England
    • Posts 536
    Is the web.config file in the application root?
    Dave Legg
  • Re: Bug: <authentication mode="Forms"> ???

    11-15-2004, 3:43 PM
    • Contributor
      4,570 point Contributor
    • danmor
    • Member since 11-04-2002, 9:48 PM
    • Bellevue, WA
    • Posts 910
    • AspNetTeam
    There are two things I noticed. First, is that the path to your web.config file contains two directories of the same name:
    SourceFile: C:\Inetpub\wwwroot$\PortalVBVS\PortalVBVS\web.config
    This is odd. I usually see that when someone adds the project to Source Code Control in Visual SourceSafe. Make sure that you do not have a web.config in C:\Inetpub\wwwroot$\PortalVBVS\, and that the root of your web is C:\Inetpub\wwwroot$\PortalVBVS\PortalVBVS as you expect.

    The second thing I notice is that the parser error message says "...error can be caused by a virtual map not being configurated as application in IIS. " Which means that the physical location of your application may not be marked as an application by IIS. This is probably related to the first issue of directory locations. Most likely you have created a web application at C:\Inetpub\wwwroot\PortalVBVS\, but your web root is at C:\Inetpub\wwwroot$\PortalVBVS\PortalVBVS. This conflict must be resolved. You must make sure that IIS Manager has the appropriate virtual directory created for your web.
    -Dan
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Bug: <authentication mode="Forms"> ???

    01-28-2005, 9:52 AM
    • Member
      40 point Member
    • Reinaut
    • Member since 11-09-2004, 1:17 PM
    • Posts 8
    I am trying to follow what you say, although I don't know much about it. (and I won't learn much about it either if it doesn't work).
    1 I do not use sourcesafe.
    2 I created the directory wrong (my fault) but it generates (practically) the same error when there is only one directory of the same name.
    3. I did not have a web.config in C:\Inetpub\wwwroot$\PortalVBVS\
    4. I don't have IIS, I don't know how to work with IIS, and I know I can't work with IIS because I have Xp Home.
    5. Accordingly I can't configure IIS

    I am using Cassini and I don't know how to configure a virtual root/map in Cassini nor VB.Net. I had Frontpage nor server extensions ever installed.

    So my problem remains the same. I do have another question to ask: what is a virtual/web root/map? I see thetermin the errors, in replies from the forum, though Cassini (which should make up for IIS in XP Home-edition) never says a thing about it.

    However it didn't help, I thank you greatly for your reply, Which shows my problem is taken (kind of) seriously
  • Re: Bug: <authentication mode="Forms"> ???

    01-29-2005, 2:03 PM
    • Contributor
      2,680 point Contributor
    • imleggy
    • Member since 05-05-2003, 2:09 PM
    • England
    • Posts 536
    You need to ensure that:
    C:\Inetpub\wwwroot$\PortalVBVS\PortalVBVS\
    is set at the Physical Path in cassini for everything to work.

    HTH
    Dave Legg
  • Re: Bug: <authentication mode="Forms"> ???

    01-06-2006, 10:40 AM
    • Member
      12 point Member
    • Dema
    • Member since 01-06-2006, 3:33 PM
    • Belgium
    • Posts 9

    i have a similar error as reinaut.

    My teacher has given us some solutions of asp.net excersises, but i can't watch them in internet explorer at home.

    this is the error:

     if you want a translation look at reinaut's post.

    Serverfout in toepassing /.

    Configuratiefout

    Beschrijving: Er is een fout opgetreden tijdens het verwerken van een configuratiebestand dat vereist is om aan deze aanvraag te voldoen. Raadpleeg de hieronder weergegeven details van deze fout en pas uw configuratiebestand overeenkomstig aan.

    Parser-foutbericht: Een sectie die is geregistreerd als allowDefinition='MachineToApplication' mag niet worden gebruikt buiten het toepassingsbereik. Deze fout kan worden veroorzaakt doordat een virtuele map niet is geconfigureerd als toepassing in IIS.

    Fout in bron:

    Regel 37:            by Microsoft that offers a single logon and core profile services for member sites.
    Regel 38:     -->
    Regel 39:     <authentication mode="Windows" /> 
    Regel 40: 
    Regel 41: 

    Bronbestand: C:\Studenten\aspnet\oef1\oef1a\web.config    Regel: 39


    Versiegegevens: Microsoft .NET Framework Versie:1.1.4322.2032; ASP.NET Versie:1.1.4322.2032

     

    anyone who knows what i should do?

  • Re: Bug: <authentication mode="Forms"> ???

    01-13-2006, 6:53 PM
    • Contributor
      4,570 point Contributor
    • danmor
    • Member since 11-04-2002, 9:48 PM
    • Bellevue, WA
    • Posts 910
    • AspNetTeam

    If you are running the application in IIS then your should make sure your web root is configured as an application in IIS.  Run IIS Manager, create a new Virtual Directory with the physical location C:\Studenten\aspnet\oef1\oef1a.

    -Dan
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Betreft: Re: Bug: <authentication mode="Forms"> ???

    01-22-2006, 7:55 AM
    • Member
      12 point Member
    • Dema
    • Member since 01-06-2006, 3:33 PM
    • Belgium
    • Posts 9
    Thanx, it works
  • Re: Bug: <authentication mode="Forms"> ???

    05-28-2009, 1:56 AM
    • Member
      2 point Member
    • Rambsr
    • Member since 05-28-2009, 3:58 AM
    • Posts 1

     

    Solution: Go to  IIS and Right click on virtual folder & sub folder ( If you have sub webs) -> properties ->configuration -> click on create.It will solve your problem. byeRam

     

  • Re: Bug: <authentication mode="Forms"> ???

    11-13-2009, 6:13 AM
    • Contributor
      5,887 point Contributor
    • sbyard
    • Member since 03-25-2003, 11:42 PM
    • North Yorkshire - England
    • Posts 1,187

    One thing to try when you get the dreaded "machine to config" error, is to copy the web site folder to the root of a drive, and run it from there. I have seen issues in the past where someone was creating a web project, and it saved ot to their profile folder by default, and this issue arose. Moving the folder to the root of another disk worked, and showed that somewhere up in the hierarchy of folder, was anoter web config file.

    If it was easy, everybody would be doing it.
Page 1 of 1 (10 items)