understanding error message

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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='MachineToApplication' 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: <authentication mode="Forms" />
    Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
    Line 27:

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


    ----------------------------------------------------------------------------
    ----
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
    Version:1.1.4322.573


    Leon Shaw Guest

  2. Similar Questions and Discussions

    1. How To Supress Acrobat Error Message And Alert Message
      Is there any way to supress those pop up message? If can't, is there any way to catch it?
    2. error message: Microsoft JScript compilation error '800a03ec'
      Recieved following error message: Microsoft JScript compilation error '800a03ec' Expected ';' ...
    3. Error Message When Sending Message In Windows Mail
      Am I the only one getting an error message when replying to a posted message using Windows Mail. Every time I send a message I get a popup error...
    4. Error Message "A drawing error ocurrred which is probably due to an out-of-memory condition. Try qu
      I am running Acrobat Reader 5.0 on a Mac Powerbook running OS 9.2 and keep getting "A drawing error occurred which is probably due to an out of...
    5. Server Error Understanding
      Please help me understand this Error??? Server Error in '/solo' Application....
  3. #2

    Default 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:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Leon Shaw" <vnality@msn.com> wrote in message
    news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...
    > 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='MachineToApplication' 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: <authentication mode="Forms" />
    > Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
    > Line 27:
    >
    > Source File: c:\inetpub\wwwroot\solo\ulogin\web.config Line: 25
    >
    >
    > --------------------------------------------------------------------------
    --
    > ----
    > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
    ASP.NET
    > Version:1.1.4322.573
    >
    >

    S. Justin Gengo Guest

  4. #3

    Default 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:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Leon Shaw" <vnality@msn.com> wrote in message
    news:%238H1wl1WDHA.3268@tk2msftngp13.phx.gbl...
    > but I though visual studios .net set-up the virtual directory and
    > application automatically when you create a web application inside the
    IDE.
    > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    > news:%23tzbdc1WDHA.652@TK2MSFTNGP10.phx.gbl...
    > > 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:
    > > [url]www.aboutfortunate.com[/url]
    > >
    > > "Out of chaos comes order."
    > > Nietzche
    > > "Leon Shaw" <vnality@msn.com> wrote in message
    > > news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...
    > > > 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='MachineToApplication' 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: <authentication mode="Forms" />
    > > > Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
    > > > Line 27:
    > > >
    > > > Source File: c:\inetpub\wwwroot\solo\ulogin\web.config Line: 25
    > > >
    > > >
    > >
    >
    > --------------------------------------------------------------------------
    > > --
    > > > ----
    > > > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
    > > ASP.NET
    > > > Version:1.1.4322.573
    > > >
    > > >
    > >
    > >
    >
    >

    S. Justin Gengo Guest

  5. #4

    Default 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@aboutfortunate.com> wrote in message
    news:%23tzbdc1WDHA.652@TK2MSFTNGP10.phx.gbl...
    > 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:
    > [url]www.aboutfortunate.com[/url]
    >
    > "Out of chaos comes order."
    > Nietzche
    > "Leon Shaw" <vnality@msn.com> wrote in message
    > news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...
    > > 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='MachineToApplication' 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: <authentication mode="Forms" />
    > > Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
    > > Line 27:
    > >
    > > Source File: c:\inetpub\wwwroot\solo\ulogin\web.config Line: 25
    > >
    > >
    >
    > --------------------------------------------------------------------------
    > --
    > > ----
    > > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
    > ASP.NET
    > > Version:1.1.4322.573
    > >
    > >
    >
    >

    Leon Shaw Guest

  6. #5

    Default 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: [url]www.aboutfortunate.com[/url].
    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:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche


    "Leon Shaw" <vnality@msn.com> wrote in message
    news:eoo3Qs1WDHA.1268@TK2MSFTNGP11.phx.gbl...
    > 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@aboutfortunate.com> wrote in message
    > news:%23tzbdc1WDHA.652@TK2MSFTNGP10.phx.gbl...
    > > 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:
    > > [url]www.aboutfortunate.com[/url]
    > >
    > > "Out of chaos comes order."
    > > Nietzche
    > > "Leon Shaw" <vnality@msn.com> wrote in message
    > > news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...
    > > > 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='MachineToApplication' 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: <authentication mode="Forms" />
    > > > Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
    > > > Line 27:
    > > >
    > > > Source File: c:\inetpub\wwwroot\solo\ulogin\web.config Line: 25
    > > >
    > > >
    > >
    >
    > --------------------------------------------------------------------------
    > > --
    > > > ----
    > > > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
    > > ASP.NET
    > > > Version:1.1.4322.573
    > > >
    > > >
    > >
    > >
    >
    >

    S. Justin Gengo Guest

  7. #6

    Default 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.EventArgs) Handles btnLogin.Click
    Try
    Dim FormsAuth As New FormsAuthentication
    If FormsAuth.Authenticate(txtbxUsername.Text.ToString ,
    txtbxPassword.Text.ToString) Then
    FormsAuth.RedirectFromLoginPage(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:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Leon Shaw" <vnality@msn.com> wrote in message
    news:u1TXQE2WDHA.2392@TK2MSFTNGP10.phx.gbl...
    > so how do send use to a protect page in the application. Is this correct?
    > If Me.IsValid Then
    >
    > If Me.myAuthorization(Me.txtUsername.Text.ToLower,
    > Me.txtPassword.Text.ToLower) > 0 Then
    >
    >
    System.Web.Security.FormsAuthentication.RedirectFr omLoginPage(Me.txtUsername
    > .Text, True)
    >
    > Me.Response.Redirect("../ulogin/default.aspx")
    >
    > End If
    >
    > End If
    >
    > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    > news:uhttIx1WDHA.2476@tk2msftngp13.phx.gbl...
    > > 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:
    [url]www.aboutfortunate.com[/url].
    > > 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:
    > > [url]www.aboutfortunate.com[/url]
    > >
    > > "Out of chaos comes order."
    > > Nietzche
    > >
    > >
    > > "Leon Shaw" <vnality@msn.com> wrote in message
    > > news:eoo3Qs1WDHA.1268@TK2MSFTNGP11.phx.gbl...
    > > > 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@aboutfortunate.com> wrote in message
    > > > news:%23tzbdc1WDHA.652@TK2MSFTNGP10.phx.gbl...
    > > > > 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:
    > > > > [url]www.aboutfortunate.com[/url]
    > > > >
    > > > > "Out of chaos comes order."
    > > > > Nietzche
    > > > > "Leon Shaw" <vnality@msn.com> wrote in message
    > > > > news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...
    > > > > > 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='MachineToApplication' 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: <authentication mode="Forms" />
    > > > > > Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
    > > > > > Line 27:
    > > > > >
    > > > > > Source File: c:\inetpub\wwwroot\solo\ulogin\web.config Line: 25
    > > > > >
    > > > > >
    > > > >
    > > >
    > >
    >
    > --------------------------------------------------------------------------
    > > > > --
    > > > > > ----
    > > > > > Version Information: Microsoft .NET Framework
    Version:1.1.4322.573;
    > > > > ASP.NET
    > > > > > Version:1.1.4322.573
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    S. Justin Gengo Guest

  8. #7

    Default Re: understanding error message

    but what if you wanted to send the user back to a specified pade(not
    RedirectFromLoginPage) which is the default.aspx?
    "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    news:%234C4JU2WDHA.216@TK2MSFTNGP11.phx.gbl...
    > 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.EventArgs) Handles btnLogin.Click
    > Try
    > Dim FormsAuth As New FormsAuthentication
    > If FormsAuth.Authenticate(txtbxUsername.Text.ToString ,
    > txtbxPassword.Text.ToString) Then
    > FormsAuth.RedirectFromLoginPage(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:
    > [url]www.aboutfortunate.com[/url]
    >
    > "Out of chaos comes order."
    > Nietzche
    > "Leon Shaw" <vnality@msn.com> wrote in message
    > news:u1TXQE2WDHA.2392@TK2MSFTNGP10.phx.gbl...
    > > so how do send use to a protect page in the application. Is this
    correct?
    > > If Me.IsValid Then
    > >
    > > If Me.myAuthorization(Me.txtUsername.Text.ToLower,
    > > Me.txtPassword.Text.ToLower) > 0 Then
    > >
    > >
    >
    System.Web.Security.FormsAuthentication.RedirectFr omLoginPage(Me.txtUsername
    > > .Text, True)
    > >
    > > Me.Response.Redirect("../ulogin/default.aspx")
    > >
    > > End If
    > >
    > > End If
    > >
    > > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    > > news:uhttIx1WDHA.2476@tk2msftngp13.phx.gbl...
    > > > 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:
    > [url]www.aboutfortunate.com[/url].
    > > > 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:
    > > > [url]www.aboutfortunate.com[/url]
    > > >
    > > > "Out of chaos comes order."
    > > > Nietzche
    > > >
    > > >
    > > > "Leon Shaw" <vnality@msn.com> wrote in message
    > > > news:eoo3Qs1WDHA.1268@TK2MSFTNGP11.phx.gbl...
    > > > > 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@aboutfortunate.com> wrote in message
    > > > > news:%23tzbdc1WDHA.652@TK2MSFTNGP10.phx.gbl...
    > > > > > 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:
    > > > > > [url]www.aboutfortunate.com[/url]
    > > > > >
    > > > > > "Out of chaos comes order."
    > > > > > Nietzche
    > > > > > "Leon Shaw" <vnality@msn.com> wrote in message
    > > > > > news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...
    > > > > > > 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='MachineToApplication' 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: <authentication mode="Forms" />
    > > > > > > Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
    > > > > > > Line 27:
    > > > > > >
    > > > > > > Source File: c:\inetpub\wwwroot\solo\ulogin\web.config Line:
    25
    > > > > > >
    > > > > > >
    > > > > >
    > > > >
    > > >
    > >
    >
    > --------------------------------------------------------------------------
    > > > > > --
    > > > > > > ----
    > > > > > > Version Information: Microsoft .NET Framework
    > Version:1.1.4322.573;
    > > > > > ASP.NET
    > > > > > > Version:1.1.4322.573
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Leon Shaw Guest

  9. #8

    Default 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:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Leon Shaw" <vnality@msn.com> wrote in message
    news:eUaCg32WDHA.2328@TK2MSFTNGP12.phx.gbl...
    > but what if you wanted to send the user back to a specified pade(not
    > RedirectFromLoginPage) which is the default.aspx?
    > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    > news:%234C4JU2WDHA.216@TK2MSFTNGP11.phx.gbl...
    > > 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.EventArgs) Handles btnLogin.Click
    > > Try
    > > Dim FormsAuth As New FormsAuthentication
    > > If FormsAuth.Authenticate(txtbxUsername.Text.ToString ,
    > > txtbxPassword.Text.ToString) Then
    > > FormsAuth.RedirectFromLoginPage(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:
    > > [url]www.aboutfortunate.com[/url]
    > >
    > > "Out of chaos comes order."
    > > Nietzche
    > > "Leon Shaw" <vnality@msn.com> wrote in message
    > > news:u1TXQE2WDHA.2392@TK2MSFTNGP10.phx.gbl...
    > > > so how do send use to a protect page in the application. Is this
    > correct?
    > > > If Me.IsValid Then
    > > >
    > > > If Me.myAuthorization(Me.txtUsername.Text.ToLower,
    > > > Me.txtPassword.Text.ToLower) > 0 Then
    > > >
    > > >
    > >
    >
    System.Web.Security.FormsAuthentication.RedirectFr omLoginPage(Me.txtUsername
    > > > .Text, True)
    > > >
    > > > Me.Response.Redirect("../ulogin/default.aspx")
    > > >
    > > > End If
    > > >
    > > > End If
    > > >
    > > > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    > > > news:uhttIx1WDHA.2476@tk2msftngp13.phx.gbl...
    > > > > 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:
    > > [url]www.aboutfortunate.com[/url].
    > > > > 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:
    > > > > [url]www.aboutfortunate.com[/url]
    > > > >
    > > > > "Out of chaos comes order."
    > > > > Nietzche
    > > > >
    > > > >
    > > > > "Leon Shaw" <vnality@msn.com> wrote in message
    > > > > news:eoo3Qs1WDHA.1268@TK2MSFTNGP11.phx.gbl...
    > > > > > 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@aboutfortunate.com> wrote in message
    > > > > > news:%23tzbdc1WDHA.652@TK2MSFTNGP10.phx.gbl...
    > > > > > > 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:
    > > > > > > [url]www.aboutfortunate.com[/url]
    > > > > > >
    > > > > > > "Out of chaos comes order."
    > > > > > > Nietzche
    > > > > > > "Leon Shaw" <vnality@msn.com> wrote in message
    > > > > > > news:ermU4T1WDHA.1900@TK2MSFTNGP10.phx.gbl...
    > > > > > > > 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='MachineToApplication' 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: <authentication mode="Forms" />
    > > > > > > > Line 26: <forms name="uloginCookie" loginUrl="login.aspx">
    > > > > > > > Line 27:
    > > > > > > >
    > > > > > > > Source File: c:\inetpub\wwwroot\solo\ulogin\web.config
    Line:
    > 25
    > > > > > > >
    > > > > > > >
    > > > > > >
    > > > > >
    > > > >
    > > >
    > >
    >
    > --------------------------------------------------------------------------
    > > > > > > --
    > > > > > > > ----
    > > > > > > > Version Information: Microsoft .NET Framework
    > > Version:1.1.4322.573;
    > > > > > > ASP.NET
    > > > > > > > Version:1.1.4322.573
    > > > > > > >
    > > > > > > >
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    S. Justin Gengo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139