understanding error message

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Leon Shaw

    #1

    understanding error message

    Someone please help me understand the following error message:

    Server Error in '/solo' 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 ='MachineToAppl ication' beyond application level. This error
    can be caused by a virtual directory not being configured as an application
    in IIS.

    Source Error:

    Line 23: "Forms", "Passport" and "None"
    Line 24: -->
    Line 25: <authenticati on mode="Forms" />
    Line 26: <forms name="uloginCoo kie" loginUrl="login .aspx">
    Line 27:

    Source File: c:\inetpub\wwwr oot\solo\ulogin \web.config Line: 25


    ----------------------------------------------------------------------------
    ----
    Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
    Version:1.1.432 2.573


  • S. Justin Gengo

    #2
    Re: understanding error message

    Leon,

    It looks like the folder your .net files are in is not configured as a web
    application on the server.

    On the server go to:

    Administrative Tools - Internet Information Services

    Expand the computer node, expand the web sites node, and find your web site
    in the list (It may be within the "Default Web Site" node depending on how
    your machine is set up.) If the web site's icon is a folder it is not
    configured as a web site.

    To configure it as a web site, right click on it and choose properties.
    Click the create button and then everything should be fine.

    If you have added a web.config file to a folder within your main website
    then that folder needs to be a website itself in order for web.config to
    function properly.

    I hope this helps.

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzche
    "Leon Shaw" <vnality@msn.co m> wrote in message
    news:ermU4T1WDH A.1900@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Someone please help me understand the following error message:
    >
    > Server Error in '/solo' Application.
    > --------------------------------------------------------------------------[/color]
    --[color=blue]
    > ----
    >
    > Configuration Error
    > Description: An error occurred during the processing of a configuration[/color]
    file[color=blue]
    > 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 ='MachineToAppl ication' beyond application level. This[/color]
    error[color=blue]
    > can be caused by a virtual directory not being configured as an[/color]
    application[color=blue]
    > in IIS.
    >
    > Source Error:
    >
    > Line 23: "Forms", "Passport" and "None"
    > Line 24: -->
    > Line 25: <authenticati on mode="Forms" />
    > Line 26: <forms name="uloginCoo kie" loginUrl="login .aspx">
    > Line 27:
    >
    > Source File: c:\inetpub\wwwr oot\solo\ulogin \web.config Line: 25
    >
    >
    > --------------------------------------------------------------------------[/color]
    --[color=blue]
    > ----
    > Version Information: Microsoft .NET Framework Version:1.1.432 2.573;[/color]
    ASP.NET[color=blue]
    > Version:1.1.432 2.573
    >
    >[/color]


    Comment

    • S. Justin Gengo

      #3
      Re: understanding error message

      Yes, it usually does. But there are some circumstances in which it does not.
      If you add a web.config file to a folder it doesn't automatically make that
      folder an app. Another example would be if you copy and paste the web site
      files into a folder on the server. Then you would have to set up the site
      yourself.

      Sincerely,

      --
      S. Justin Gengo, MCP
      Web Developer

      Free code library at:
      www.aboutfortunate.com

      "Out of chaos comes order."
      Nietzche
      "Leon Shaw" <vnality@msn.co m> wrote in message
      news:%238H1wl1W DHA.3268@tk2msf tngp13.phx.gbl. ..[color=blue]
      > but I though visual studios .net set-up the virtual directory and
      > application automatically when you create a web application inside the[/color]
      IDE.[color=blue]
      > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
      > news:%23tzbdc1W DHA.652@TK2MSFT NGP10.phx.gbl.. .[color=green]
      > > Leon,
      > >
      > > It looks like the folder your .net files are in is not configured as a[/color][/color]
      web[color=blue][color=green]
      > > application on the server.
      > >
      > > On the server go to:
      > >
      > > Administrative Tools - Internet Information Services
      > >
      > > Expand the computer node, expand the web sites node, and find your web[/color]
      > site[color=green]
      > > in the list (It may be within the "Default Web Site" node depending on[/color][/color]
      how[color=blue][color=green]
      > > your machine is set up.) If the web site's icon is a folder it is not
      > > configured as a web site.
      > >
      > > To configure it as a web site, right click on it and choose properties.
      > > Click the create button and then everything should be fine.
      > >
      > > If you have added a web.config file to a folder within your main website
      > > then that folder needs to be a website itself in order for web.config to
      > > function properly.
      > >
      > > I hope this helps.
      > >
      > > --
      > > S. Justin Gengo, MCP
      > > Web Developer
      > >
      > > Free code library at:
      > > www.aboutfortunate.com
      > >
      > > "Out of chaos comes order."
      > > Nietzche
      > > "Leon Shaw" <vnality@msn.co m> wrote in message
      > > news:ermU4T1WDH A.1900@TK2MSFTN GP10.phx.gbl...[color=darkred]
      > > > Someone please help me understand the following error message:
      > > >
      > > > Server Error in '/solo' Application.[/color]
      > >[/color]
      >
      > --------------------------------------------------------------------------[color=green]
      > > --[color=darkred]
      > > > ----
      > > >
      > > > Configuration Error
      > > > Description: An error occurred during the processing of a[/color][/color][/color]
      configuration[color=blue][color=green]
      > > file[color=darkred]
      > > > required to service this request. Please review the specific error[/color][/color]
      > details[color=green][color=darkred]
      > > > below and modify your configuration file appropriately.
      > > >
      > > > Parser Error Message: It is an error to use a section registered as
      > > > allowDefinition ='MachineToAppl ication' beyond application level. This[/color]
      > > error[color=darkred]
      > > > can be caused by a virtual directory not being configured as an[/color]
      > > application[color=darkred]
      > > > in IIS.
      > > >
      > > > Source Error:
      > > >
      > > > Line 23: "Forms", "Passport" and "None"
      > > > Line 24: -->
      > > > Line 25: <authenticati on mode="Forms" />
      > > > Line 26: <forms name="uloginCoo kie" loginUrl="login .aspx">
      > > > Line 27:
      > > >
      > > > Source File: c:\inetpub\wwwr oot\solo\ulogin \web.config Line: 25
      > > >
      > > >[/color]
      > >[/color]
      >
      > --------------------------------------------------------------------------[color=green]
      > > --[color=darkred]
      > > > ----
      > > > Version Information: Microsoft .NET Framework Version:1.1.432 2.573;[/color]
      > > ASP.NET[color=darkred]
      > > > Version:1.1.432 2.573
      > > >
      > > >[/color]
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Leon Shaw

        #4
        Re: understanding error message

        ok so if I added a folder named ulogin to my application in which all my
        protected webpage and web.config file is located then ulogin folder itself
        must be a web application. So how do I add an application (instead of a
        folder) to my main web application inside of VS.net IDE, so I can password
        protect certain pages?

        "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
        news:%23tzbdc1W DHA.652@TK2MSFT NGP10.phx.gbl.. .[color=blue]
        > Leon,
        >
        > It looks like the folder your .net files are in is not configured as a web
        > application on the server.
        >
        > On the server go to:
        >
        > Administrative Tools - Internet Information Services
        >
        > Expand the computer node, expand the web sites node, and find your web[/color]
        site[color=blue]
        > in the list (It may be within the "Default Web Site" node depending on how
        > your machine is set up.) If the web site's icon is a folder it is not
        > configured as a web site.
        >
        > To configure it as a web site, right click on it and choose properties.
        > Click the create button and then everything should be fine.
        >
        > If you have added a web.config file to a folder within your main website
        > then that folder needs to be a website itself in order for web.config to
        > function properly.
        >
        > I hope this helps.
        >
        > --
        > S. Justin Gengo, MCP
        > Web Developer
        >
        > Free code library at:
        > www.aboutfortunate.com
        >
        > "Out of chaos comes order."
        > Nietzche
        > "Leon Shaw" <vnality@msn.co m> wrote in message
        > news:ermU4T1WDH A.1900@TK2MSFTN GP10.phx.gbl...[color=green]
        > > Someone please help me understand the following error message:
        > >
        > > Server Error in '/solo' Application.[/color]
        >
        > --------------------------------------------------------------------------
        > --[color=green]
        > > ----
        > >
        > > Configuration Error
        > > Description: An error occurred during the processing of a configuration[/color]
        > file[color=green]
        > > required to service this request. Please review the specific error[/color][/color]
        details[color=blue][color=green]
        > > below and modify your configuration file appropriately.
        > >
        > > Parser Error Message: It is an error to use a section registered as
        > > allowDefinition ='MachineToAppl ication' beyond application level. This[/color]
        > error[color=green]
        > > can be caused by a virtual directory not being configured as an[/color]
        > application[color=green]
        > > in IIS.
        > >
        > > Source Error:
        > >
        > > Line 23: "Forms", "Passport" and "None"
        > > Line 24: -->
        > > Line 25: <authenticati on mode="Forms" />
        > > Line 26: <forms name="uloginCoo kie" loginUrl="login .aspx">
        > > Line 27:
        > >
        > > Source File: c:\inetpub\wwwr oot\solo\ulogin \web.config Line: 25
        > >
        > >[/color]
        >
        > --------------------------------------------------------------------------
        > --[color=green]
        > > ----
        > > Version Information: Microsoft .NET Framework Version:1.1.432 2.573;[/color]
        > ASP.NET[color=green]
        > > Version:1.1.432 2.573
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • S. Justin Gengo

          #5
          Re: understanding error message

          Leon,

          If you want instead of adding a separate web.config file to your folder you
          can actually use the main web.config file to protect a folder within the web
          site.

          I have an example on how to do this on my website: www.aboutfortunate.com.
          Just search the code library for: "protect a folder with forms
          authentication"

          I also have a link to an article about how to use a database with forms
          authentication in the library (I just added the link when I saw it posted
          here).

          Good luck!

          --
          S. Justin Gengo, MCP
          Web Developer

          Free code library at:
          www.aboutfortunate.com

          "Out of chaos comes order."
          Nietzche


          "Leon Shaw" <vnality@msn.co m> wrote in message
          news:eoo3Qs1WDH A.1268@TK2MSFTN GP11.phx.gbl...[color=blue]
          > ok so if I added a folder named ulogin to my application in which all my
          > protected webpage and web.config file is located then ulogin folder itself
          > must be a web application. So how do I add an application (instead of a
          > folder) to my main web application inside of VS.net IDE, so I can password
          > protect certain pages?
          >
          > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
          > news:%23tzbdc1W DHA.652@TK2MSFT NGP10.phx.gbl.. .[color=green]
          > > Leon,
          > >
          > > It looks like the folder your .net files are in is not configured as a[/color][/color]
          web[color=blue][color=green]
          > > application on the server.
          > >
          > > On the server go to:
          > >
          > > Administrative Tools - Internet Information Services
          > >
          > > Expand the computer node, expand the web sites node, and find your web[/color]
          > site[color=green]
          > > in the list (It may be within the "Default Web Site" node depending on[/color][/color]
          how[color=blue][color=green]
          > > your machine is set up.) If the web site's icon is a folder it is not
          > > configured as a web site.
          > >
          > > To configure it as a web site, right click on it and choose properties.
          > > Click the create button and then everything should be fine.
          > >
          > > If you have added a web.config file to a folder within your main website
          > > then that folder needs to be a website itself in order for web.config to
          > > function properly.
          > >
          > > I hope this helps.
          > >
          > > --
          > > S. Justin Gengo, MCP
          > > Web Developer
          > >
          > > Free code library at:
          > > www.aboutfortunate.com
          > >
          > > "Out of chaos comes order."
          > > Nietzche
          > > "Leon Shaw" <vnality@msn.co m> wrote in message
          > > news:ermU4T1WDH A.1900@TK2MSFTN GP10.phx.gbl...[color=darkred]
          > > > Someone please help me understand the following error message:
          > > >
          > > > Server Error in '/solo' Application.[/color]
          > >[/color]
          >
          > --------------------------------------------------------------------------[color=green]
          > > --[color=darkred]
          > > > ----
          > > >
          > > > Configuration Error
          > > > Description: An error occurred during the processing of a[/color][/color][/color]
          configuration[color=blue][color=green]
          > > file[color=darkred]
          > > > required to service this request. Please review the specific error[/color][/color]
          > details[color=green][color=darkred]
          > > > below and modify your configuration file appropriately.
          > > >
          > > > Parser Error Message: It is an error to use a section registered as
          > > > allowDefinition ='MachineToAppl ication' beyond application level. This[/color]
          > > error[color=darkred]
          > > > can be caused by a virtual directory not being configured as an[/color]
          > > application[color=darkred]
          > > > in IIS.
          > > >
          > > > Source Error:
          > > >
          > > > Line 23: "Forms", "Passport" and "None"
          > > > Line 24: -->
          > > > Line 25: <authenticati on mode="Forms" />
          > > > Line 26: <forms name="uloginCoo kie" loginUrl="login .aspx">
          > > > Line 27:
          > > >
          > > > Source File: c:\inetpub\wwwr oot\solo\ulogin \web.config Line: 25
          > > >
          > > >[/color]
          > >[/color]
          >
          > --------------------------------------------------------------------------[color=green]
          > > --[color=darkred]
          > > > ----
          > > > Version Information: Microsoft .NET Framework Version:1.1.432 2.573;[/color]
          > > ASP.NET[color=darkred]
          > > > Version:1.1.432 2.573
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • S. Justin Gengo

            #6
            Re: understanding error message

            Leon,

            Here's how I'm doing it:

            '---My login page code
            Private Sub btnLogin_Click( ByVal sender As System.Object, ByVal e As
            System.EventArg s) Handles btnLogin.Click
            Try
            Dim FormsAuth As New FormsAuthentica tion
            If FormsAuth.Authe nticate(txtbxUs ername.Text.ToS tring,
            txtbxPassword.T ext.ToString) Then
            FormsAuth.Redir ectFromLoginPag e(txtbxUsername .Text.ToString,
            True)End If
            Catch ex As Excepion
            '---Handle errors
            End Try
            End Sub

            --
            S. Justin Gengo, MCP
            Web Developer

            Free code library at:
            www.aboutfortunate.com

            "Out of chaos comes order."
            Nietzche
            "Leon Shaw" <vnality@msn.co m> wrote in message
            news:u1TXQE2WDH A.2392@TK2MSFTN GP10.phx.gbl...[color=blue]
            > so how do send use to a protect page in the application. Is this correct?
            > If Me.IsValid Then
            >
            > If Me.myAuthorizat ion(Me.txtUsern ame.Text.ToLowe r,
            > Me.txtPassword. Text.ToLower) > 0 Then
            >
            >[/color]
            System.Web.Secu rity.FormsAuthe ntication.Redir ectFromLoginPag e(Me.txtUsernam e[color=blue]
            > .Text, True)
            >
            > Me.Response.Red irect("../ulogin/default.aspx")
            >
            > End If
            >
            > End If
            >
            > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
            > news:uhttIx1WDH A.2476@tk2msftn gp13.phx.gbl...[color=green]
            > > Leon,
            > >
            > > If you want instead of adding a separate web.config file to your folder[/color]
            > you[color=green]
            > > can actually use the main web.config file to protect a folder within the[/color]
            > web[color=green]
            > > site.
            > >
            > > I have an example on how to do this on my website:[/color][/color]
            www.aboutfortunate.com.[color=blue][color=green]
            > > Just search the code library for: "protect a folder with forms
            > > authentication"
            > >
            > > I also have a link to an article about how to use a database with forms
            > > authentication in the library (I just added the link when I saw it[/color][/color]
            posted[color=blue][color=green]
            > > here).
            > >
            > > Good luck!
            > >
            > > --
            > > S. Justin Gengo, MCP
            > > Web Developer
            > >
            > > Free code library at:
            > > www.aboutfortunate.com
            > >
            > > "Out of chaos comes order."
            > > Nietzche
            > >
            > >
            > > "Leon Shaw" <vnality@msn.co m> wrote in message
            > > news:eoo3Qs1WDH A.1268@TK2MSFTN GP11.phx.gbl...[color=darkred]
            > > > ok so if I added a folder named ulogin to my application in which all[/color][/color][/color]
            my[color=blue][color=green][color=darkred]
            > > > protected webpage and web.config file is located then ulogin folder[/color][/color]
            > itself[color=green][color=darkred]
            > > > must be a web application. So how do I add an application (instead of[/color][/color][/color]
            a[color=blue][color=green][color=darkred]
            > > > folder) to my main web application inside of VS.net IDE, so I can[/color][/color]
            > password[color=green][color=darkred]
            > > > protect certain pages?
            > > >
            > > > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
            > > > news:%23tzbdc1W DHA.652@TK2MSFT NGP10.phx.gbl.. .
            > > > > Leon,
            > > > >
            > > > > It looks like the folder your .net files are in is not configured as[/color][/color][/color]
            a[color=blue][color=green]
            > > web[color=darkred]
            > > > > application on the server.
            > > > >
            > > > > On the server go to:
            > > > >
            > > > > Administrative Tools - Internet Information Services
            > > > >
            > > > > Expand the computer node, expand the web sites node, and find your[/color][/color][/color]
            web[color=blue][color=green][color=darkred]
            > > > site
            > > > > in the list (It may be within the "Default Web Site" node depending[/color][/color][/color]
            on[color=blue][color=green]
            > > how[color=darkred]
            > > > > your machine is set up.) If the web site's icon is a folder it is[/color][/color][/color]
            not[color=blue][color=green][color=darkred]
            > > > > configured as a web site.
            > > > >
            > > > > To configure it as a web site, right click on it and choose[/color][/color]
            > properties.[color=green][color=darkred]
            > > > > Click the create button and then everything should be fine.
            > > > >
            > > > > If you have added a web.config file to a folder within your main[/color][/color]
            > website[color=green][color=darkred]
            > > > > then that folder needs to be a website itself in order for[/color][/color][/color]
            web.config[color=blue]
            > to[color=green][color=darkred]
            > > > > function properly.
            > > > >
            > > > > I hope this helps.
            > > > >
            > > > > --
            > > > > S. Justin Gengo, MCP
            > > > > Web Developer
            > > > >
            > > > > Free code library at:
            > > > > www.aboutfortunate.com
            > > > >
            > > > > "Out of chaos comes order."
            > > > > Nietzche
            > > > > "Leon Shaw" <vnality@msn.co m> wrote in message
            > > > > news:ermU4T1WDH A.1900@TK2MSFTN GP10.phx.gbl...
            > > > > > Someone please help me understand the following error message:
            > > > > >
            > > > > > Server Error in '/solo' Application.
            > > > >
            > > >[/color]
            > >[/color]
            >
            > --------------------------------------------------------------------------[color=green][color=darkred]
            > > > > --
            > > > > > ----
            > > > > >
            > > > > > Configuration Error
            > > > > > Description: An error occurred during the processing of a[/color]
            > > configuration[color=darkred]
            > > > > 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[/color][/color][/color]
            as[color=blue][color=green][color=darkred]
            > > > > > allowDefinition ='MachineToAppl ication' beyond application level.[/color][/color]
            > This[color=green][color=darkred]
            > > > > error
            > > > > > can be caused by a virtual directory not being configured as an
            > > > > application
            > > > > > in IIS.
            > > > > >
            > > > > > Source Error:
            > > > > >
            > > > > > Line 23: "Forms", "Passport" and "None"
            > > > > > Line 24: -->
            > > > > > Line 25: <authenticati on mode="Forms" />
            > > > > > Line 26: <forms name="uloginCoo kie" loginUrl="login .aspx">
            > > > > > Line 27:
            > > > > >
            > > > > > Source File: c:\inetpub\wwwr oot\solo\ulogin \web.config Line: 25
            > > > > >
            > > > > >
            > > > >
            > > >[/color]
            > >[/color]
            >
            > --------------------------------------------------------------------------[color=green][color=darkred]
            > > > > --
            > > > > > ----
            > > > > > Version Information: Microsoft .NET Framework[/color][/color][/color]
            Version:1.1.432 2.573;[color=blue][color=green][color=darkred]
            > > > > ASP.NET
            > > > > > Version:1.1.432 2.573
            > > > > >
            > > > > >
            > > > >
            > > > >
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • Leon Shaw

              #7
              Re: understanding error message

              but what if you wanted to send the user back to a specified pade(not
              RedirectFromLog inPage) which is the default.aspx?
              "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
              news:%234C4JU2W DHA.216@TK2MSFT NGP11.phx.gbl.. .[color=blue]
              > Leon,
              >
              > Here's how I'm doing it:
              >
              > '---My login page code
              > Private Sub btnLogin_Click( ByVal sender As System.Object, ByVal e As
              > System.EventArg s) Handles btnLogin.Click
              > Try
              > Dim FormsAuth As New FormsAuthentica tion
              > If FormsAuth.Authe nticate(txtbxUs ername.Text.ToS tring,
              > txtbxPassword.T ext.ToString) Then
              > FormsAuth.Redir ectFromLoginPag e(txtbxUsername .Text.ToString,
              > True)End If
              > Catch ex As Excepion
              > '---Handle errors
              > End Try
              > End Sub
              >
              > --
              > S. Justin Gengo, MCP
              > Web Developer
              >
              > Free code library at:
              > www.aboutfortunate.com
              >
              > "Out of chaos comes order."
              > Nietzche
              > "Leon Shaw" <vnality@msn.co m> wrote in message
              > news:u1TXQE2WDH A.2392@TK2MSFTN GP10.phx.gbl...[color=green]
              > > so how do send use to a protect page in the application. Is this[/color][/color]
              correct?[color=blue][color=green]
              > > If Me.IsValid Then
              > >
              > > If Me.myAuthorizat ion(Me.txtUsern ame.Text.ToLowe r,
              > > Me.txtPassword. Text.ToLower) > 0 Then
              > >
              > >[/color]
              >[/color]
              System.Web.Secu rity.FormsAuthe ntication.Redir ectFromLoginPag e(Me.txtUsernam e[color=blue][color=green]
              > > .Text, True)
              > >
              > > Me.Response.Red irect("../ulogin/default.aspx")
              > >
              > > End If
              > >
              > > End If
              > >
              > > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
              > > news:uhttIx1WDH A.2476@tk2msftn gp13.phx.gbl...[color=darkred]
              > > > Leon,
              > > >
              > > > If you want instead of adding a separate web.config file to your[/color][/color][/color]
              folder[color=blue][color=green]
              > > you[color=darkred]
              > > > can actually use the main web.config file to protect a folder within[/color][/color][/color]
              the[color=blue][color=green]
              > > web[color=darkred]
              > > > site.
              > > >
              > > > I have an example on how to do this on my website:[/color][/color]
              > www.aboutfortunate.com.[color=green][color=darkred]
              > > > Just search the code library for: "protect a folder with forms
              > > > authentication"
              > > >
              > > > I also have a link to an article about how to use a database with[/color][/color][/color]
              forms[color=blue][color=green][color=darkred]
              > > > authentication in the library (I just added the link when I saw it[/color][/color]
              > posted[color=green][color=darkred]
              > > > here).
              > > >
              > > > Good luck!
              > > >
              > > > --
              > > > S. Justin Gengo, MCP
              > > > Web Developer
              > > >
              > > > Free code library at:
              > > > www.aboutfortunate.com
              > > >
              > > > "Out of chaos comes order."
              > > > Nietzche
              > > >
              > > >
              > > > "Leon Shaw" <vnality@msn.co m> wrote in message
              > > > news:eoo3Qs1WDH A.1268@TK2MSFTN GP11.phx.gbl...
              > > > > ok so if I added a folder named ulogin to my application in which[/color][/color][/color]
              all[color=blue]
              > my[color=green][color=darkred]
              > > > > protected webpage and web.config file is located then ulogin folder[/color]
              > > itself[color=darkred]
              > > > > must be a web application. So how do I add an application (instead[/color][/color][/color]
              of[color=blue]
              > a[color=green][color=darkred]
              > > > > folder) to my main web application inside of VS.net IDE, so I can[/color]
              > > password[color=darkred]
              > > > > protect certain pages?
              > > > >
              > > > > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
              > > > > news:%23tzbdc1W DHA.652@TK2MSFT NGP10.phx.gbl.. .
              > > > > > Leon,
              > > > > >
              > > > > > It looks like the folder your .net files are in is not configured[/color][/color][/color]
              as[color=blue]
              > a[color=green][color=darkred]
              > > > web
              > > > > > application on the server.
              > > > > >
              > > > > > On the server go to:
              > > > > >
              > > > > > Administrative Tools - Internet Information Services
              > > > > >
              > > > > > Expand the computer node, expand the web sites node, and find your[/color][/color]
              > web[color=green][color=darkred]
              > > > > site
              > > > > > in the list (It may be within the "Default Web Site" node[/color][/color][/color]
              depending[color=blue]
              > on[color=green][color=darkred]
              > > > how
              > > > > > your machine is set up.) If the web site's icon is a folder it is[/color][/color]
              > not[color=green][color=darkred]
              > > > > > configured as a web site.
              > > > > >
              > > > > > To configure it as a web site, right click on it and choose[/color]
              > > properties.[color=darkred]
              > > > > > Click the create button and then everything should be fine.
              > > > > >
              > > > > > If you have added a web.config file to a folder within your main[/color]
              > > website[color=darkred]
              > > > > > then that folder needs to be a website itself in order for[/color][/color]
              > web.config[color=green]
              > > to[color=darkred]
              > > > > > function properly.
              > > > > >
              > > > > > I hope this helps.
              > > > > >
              > > > > > --
              > > > > > S. Justin Gengo, MCP
              > > > > > Web Developer
              > > > > >
              > > > > > Free code library at:
              > > > > > www.aboutfortunate.com
              > > > > >
              > > > > > "Out of chaos comes order."
              > > > > > Nietzche
              > > > > > "Leon Shaw" <vnality@msn.co m> wrote in message
              > > > > > news:ermU4T1WDH A.1900@TK2MSFTN GP10.phx.gbl...
              > > > > > > Someone please help me understand the following error message:
              > > > > > >
              > > > > > > Server Error in '/solo' Application.
              > > > > >
              > > > >
              > > >[/color]
              > >[/color]
              >
              > --------------------------------------------------------------------------[color=green][color=darkred]
              > > > > > --
              > > > > > > ----
              > > > > > >
              > > > > > > Configuration Error
              > > > > > > Description: An error occurred during the processing of a
              > > > configuration
              > > > > > file
              > > > > > > required to service this request. Please review the specific[/color][/color][/color]
              error[color=blue][color=green][color=darkred]
              > > > > details
              > > > > > > below and modify your configuration file appropriately.
              > > > > > >
              > > > > > > Parser Error Message: It is an error to use a section registered[/color][/color]
              > as[color=green][color=darkred]
              > > > > > > allowDefinition ='MachineToAppl ication' beyond application level.[/color]
              > > This[color=darkred]
              > > > > > error
              > > > > > > can be caused by a virtual directory not being configured as an
              > > > > > application
              > > > > > > in IIS.
              > > > > > >
              > > > > > > Source Error:
              > > > > > >
              > > > > > > Line 23: "Forms", "Passport" and "None"
              > > > > > > Line 24: -->
              > > > > > > Line 25: <authenticati on mode="Forms" />
              > > > > > > Line 26: <forms name="uloginCoo kie" loginUrl="login .aspx">
              > > > > > > Line 27:
              > > > > > >
              > > > > > > Source File: c:\inetpub\wwwr oot\solo\ulogin \web.config Line:[/color][/color][/color]
              25[color=blue][color=green][color=darkred]
              > > > > > >
              > > > > > >
              > > > > >
              > > > >
              > > >[/color]
              > >[/color]
              >
              > --------------------------------------------------------------------------[color=green][color=darkred]
              > > > > > --
              > > > > > > ----
              > > > > > > Version Information: Microsoft .NET Framework[/color][/color]
              > Version:1.1.432 2.573;[color=green][color=darkred]
              > > > > > ASP.NET
              > > > > > > Version:1.1.432 2.573
              > > > > > >
              > > > > > >
              > > > > >
              > > > > >
              > > > >
              > > > >
              > > >
              > > >[/color]
              > >
              > >[/color]
              >
              >[/color]


              Comment

              • S. Justin Gengo

                #8
                Re: understanding error message

                Leon,

                ..Net handles that for you. It sends the user to the original page they were
                trying to go to when they were redirected to the login page.

                Sincerely,

                --
                S. Justin Gengo, MCP
                Web Developer

                Free code library at:
                www.aboutfortunate.com

                "Out of chaos comes order."
                Nietzche
                "Leon Shaw" <vnality@msn.co m> wrote in message
                news:eUaCg32WDH A.2328@TK2MSFTN GP12.phx.gbl...[color=blue]
                > but what if you wanted to send the user back to a specified pade(not
                > RedirectFromLog inPage) which is the default.aspx?
                > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
                > news:%234C4JU2W DHA.216@TK2MSFT NGP11.phx.gbl.. .[color=green]
                > > Leon,
                > >
                > > Here's how I'm doing it:
                > >
                > > '---My login page code
                > > Private Sub btnLogin_Click( ByVal sender As System.Object, ByVal e As
                > > System.EventArg s) Handles btnLogin.Click
                > > Try
                > > Dim FormsAuth As New FormsAuthentica tion
                > > If FormsAuth.Authe nticate(txtbxUs ername.Text.ToS tring,
                > > txtbxPassword.T ext.ToString) Then
                > > FormsAuth.Redir ectFromLoginPag e(txtbxUsername .Text.ToString,
                > > True)End If
                > > Catch ex As Excepion
                > > '---Handle errors
                > > End Try
                > > End Sub
                > >
                > > --
                > > S. Justin Gengo, MCP
                > > Web Developer
                > >
                > > Free code library at:
                > > www.aboutfortunate.com
                > >
                > > "Out of chaos comes order."
                > > Nietzche
                > > "Leon Shaw" <vnality@msn.co m> wrote in message
                > > news:u1TXQE2WDH A.2392@TK2MSFTN GP10.phx.gbl...[color=darkred]
                > > > so how do send use to a protect page in the application. Is this[/color][/color]
                > correct?[color=green][color=darkred]
                > > > If Me.IsValid Then
                > > >
                > > > If Me.myAuthorizat ion(Me.txtUsern ame.Text.ToLowe r,
                > > > Me.txtPassword. Text.ToLower) > 0 Then
                > > >
                > > >[/color]
                > >[/color]
                >[/color]
                System.Web.Secu rity.FormsAuthe ntication.Redir ectFromLoginPag e(Me.txtUsernam e[color=blue][color=green][color=darkred]
                > > > .Text, True)
                > > >
                > > > Me.Response.Red irect("../ulogin/default.aspx")
                > > >
                > > > End If
                > > >
                > > > End If
                > > >
                > > > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
                > > > news:uhttIx1WDH A.2476@tk2msftn gp13.phx.gbl...
                > > > > Leon,
                > > > >
                > > > > If you want instead of adding a separate web.config file to your[/color][/color]
                > folder[color=green][color=darkred]
                > > > you
                > > > > can actually use the main web.config file to protect a folder within[/color][/color]
                > the[color=green][color=darkred]
                > > > web
                > > > > site.
                > > > >
                > > > > I have an example on how to do this on my website:[/color]
                > > www.aboutfortunate.com.[color=darkred]
                > > > > Just search the code library for: "protect a folder with forms
                > > > > authentication"
                > > > >
                > > > > I also have a link to an article about how to use a database with[/color][/color]
                > forms[color=green][color=darkred]
                > > > > authentication in the library (I just added the link when I saw it[/color]
                > > posted[color=darkred]
                > > > > here).
                > > > >
                > > > > Good luck!
                > > > >
                > > > > --
                > > > > S. Justin Gengo, MCP
                > > > > Web Developer
                > > > >
                > > > > Free code library at:
                > > > > www.aboutfortunate.com
                > > > >
                > > > > "Out of chaos comes order."
                > > > > Nietzche
                > > > >
                > > > >
                > > > > "Leon Shaw" <vnality@msn.co m> wrote in message
                > > > > news:eoo3Qs1WDH A.1268@TK2MSFTN GP11.phx.gbl...
                > > > > > ok so if I added a folder named ulogin to my application in which[/color][/color]
                > all[color=green]
                > > my[color=darkred]
                > > > > > protected webpage and web.config file is located then ulogin[/color][/color][/color]
                folder[color=blue][color=green][color=darkred]
                > > > itself
                > > > > > must be a web application. So how do I add an application[/color][/color][/color]
                (instead[color=blue]
                > of[color=green]
                > > a[color=darkred]
                > > > > > folder) to my main web application inside of VS.net IDE, so I can
                > > > password
                > > > > > protect certain pages?
                > > > > >
                > > > > > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
                > > > > > news:%23tzbdc1W DHA.652@TK2MSFT NGP10.phx.gbl.. .
                > > > > > > Leon,
                > > > > > >
                > > > > > > It looks like the folder your .net files are in is not[/color][/color][/color]
                configured[color=blue]
                > as[color=green]
                > > a[color=darkred]
                > > > > web
                > > > > > > application on the server.
                > > > > > >
                > > > > > > On the server go to:
                > > > > > >
                > > > > > > Administrative Tools - Internet Information Services
                > > > > > >
                > > > > > > Expand the computer node, expand the web sites node, and find[/color][/color][/color]
                your[color=blue][color=green]
                > > web[color=darkred]
                > > > > > site
                > > > > > > in the list (It may be within the "Default Web Site" node[/color][/color]
                > depending[color=green]
                > > on[color=darkred]
                > > > > how
                > > > > > > your machine is set up.) If the web site's icon is a folder it[/color][/color][/color]
                is[color=blue][color=green]
                > > not[color=darkred]
                > > > > > > configured as a web site.
                > > > > > >
                > > > > > > To configure it as a web site, right click on it and choose
                > > > properties.
                > > > > > > Click the create button and then everything should be fine.
                > > > > > >
                > > > > > > If you have added a web.config file to a folder within your main
                > > > website
                > > > > > > then that folder needs to be a website itself in order for[/color]
                > > web.config[color=darkred]
                > > > to
                > > > > > > function properly.
                > > > > > >
                > > > > > > I hope this helps.
                > > > > > >
                > > > > > > --
                > > > > > > S. Justin Gengo, MCP
                > > > > > > Web Developer
                > > > > > >
                > > > > > > Free code library at:
                > > > > > > www.aboutfortunate.com
                > > > > > >
                > > > > > > "Out of chaos comes order."
                > > > > > > Nietzche
                > > > > > > "Leon Shaw" <vnality@msn.co m> wrote in message
                > > > > > > news:ermU4T1WDH A.1900@TK2MSFTN GP10.phx.gbl...
                > > > > > > > Someone please help me understand the following error message:
                > > > > > > >
                > > > > > > > Server Error in '/solo' Application.
                > > > > > >
                > > > > >
                > > > >
                > > >[/color]
                > >[/color]
                >
                > --------------------------------------------------------------------------[color=green][color=darkred]
                > > > > > > --
                > > > > > > > ----
                > > > > > > >
                > > > > > > > Configuration Error
                > > > > > > > Description: An error occurred during the processing of a
                > > > > configuration
                > > > > > > file
                > > > > > > > required to service this request. Please review the specific[/color][/color]
                > error[color=green][color=darkred]
                > > > > > details
                > > > > > > > below and modify your configuration file appropriately.
                > > > > > > >
                > > > > > > > Parser Error Message: It is an error to use a section[/color][/color][/color]
                registered[color=blue][color=green]
                > > as[color=darkred]
                > > > > > > > allowDefinition ='MachineToAppl ication' beyond application[/color][/color][/color]
                level.[color=blue][color=green][color=darkred]
                > > > This
                > > > > > > error
                > > > > > > > can be caused by a virtual directory not being configured as[/color][/color][/color]
                an[color=blue][color=green][color=darkred]
                > > > > > > application
                > > > > > > > in IIS.
                > > > > > > >
                > > > > > > > Source Error:
                > > > > > > >
                > > > > > > > Line 23: "Forms", "Passport" and "None"
                > > > > > > > Line 24: -->
                > > > > > > > Line 25: <authenticati on mode="Forms" />
                > > > > > > > Line 26: <forms name="uloginCoo kie" loginUrl="login .aspx">
                > > > > > > > Line 27:
                > > > > > > >
                > > > > > > > Source File: c:\inetpub\wwwr oot\solo\ulogin \web.config[/color][/color][/color]
                Line:[color=blue]
                > 25[color=green][color=darkred]
                > > > > > > >
                > > > > > > >
                > > > > > >
                > > > > >
                > > > >
                > > >[/color]
                > >[/color]
                >
                > --------------------------------------------------------------------------[color=green][color=darkred]
                > > > > > > --
                > > > > > > > ----
                > > > > > > > Version Information: Microsoft .NET Framework[/color]
                > > Version:1.1.432 2.573;[color=darkred]
                > > > > > > ASP.NET
                > > > > > > > Version:1.1.432 2.573
                > > > > > > >
                > > > > > > >
                > > > > > >
                > > > > > >
                > > > > >
                > > > > >
                > > > >
                > > > >
                > > >
                > > >[/color]
                > >
                > >[/color]
                >
                >[/color]


                Comment

                Working...