cannot load http://localhost/default.aspx

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

    cannot load http://localhost/default.aspx

    Hi,

    From IIS6 and from a session on the 2003 server i attempt to browse to
    http://localhost/default.aspx and get the following 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: Unrecognized configuration section 'connectionStri ngs'

    Source Error:


    Line 10: <configuratio n>
    Line 11: <appSettings/>
    Line 12: <connectionStri ngs/>
    Line 13: <system.web>
    Line 14: <!--


    Source File: c:\inetpub\wwwr oot\web.config Line: 12



    --------------------------------------------------------------------------------

    Version Information: Microsoft .NET Framework Version:1.1.432 2.2300; ASP.NET
    Version:1.1.432 2.2300


    I tried changing ASP.NET version via Default Web Sites, Properties, ASP.NET
    tab and switching to version 2.#. After this change and running IISRESET i
    now get page not found when i attempt to browse to
    http://localhost/default.aspx.

    Can anyone help ?

    NOTE:
    default.aspx resides in c:\inetpub\wwwr oot
    i can see IISTART.html no problem
    i have admin righths


    Thanks
    Scott



    NOTE: default.aspx contains:


    <%@ Page Language="VB" AutoEventWireup ="false" CodeFile="Defau lt.aspx.vb"
    Inherits="_Defa ult" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title>Untitl ed Page</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    testing</div>
    </form>
    </body>
    </html>


  • Ray Booysen

    #2
    Re: cannot load http://localhost/default.aspx

    Looks like the application is written in .net 2.0 while IIS thinks that
    the application is 1.1. If you view the properties tab for the virtual
    directory you will be able to change the version in the asp.net tab.

    scott wrote:[color=blue]
    > Hi,
    >
    > From IIS6 and from a session on the 2003 server i attempt to browse to
    > http://localhost/default.aspx and get the following 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: Unrecognized configuration section 'connectionStri ngs'
    >
    > Source Error:
    >
    >
    > Line 10: <configuratio n>
    > Line 11: <appSettings/>
    > Line 12: <connectionStri ngs/>
    > Line 13: <system.web>
    > Line 14: <!--
    >
    >
    > Source File: c:\inetpub\wwwr oot\web.config Line: 12
    >
    >
    >
    > --------------------------------------------------------------------------------
    >
    > Version Information: Microsoft .NET Framework Version:1.1.432 2.2300; ASP.NET
    > Version:1.1.432 2.2300
    >
    >
    > I tried changing ASP.NET version via Default Web Sites, Properties, ASP.NET
    > tab and switching to version 2.#. After this change and running IISRESET i
    > now get page not found when i attempt to browse to
    > http://localhost/default.aspx.
    >
    > Can anyone help ?
    >
    > NOTE:
    > default.aspx resides in c:\inetpub\wwwr oot
    > i can see IISTART.html no problem
    > i have admin righths
    >
    >
    > Thanks
    > Scott
    >
    >
    >
    > NOTE: default.aspx contains:
    >
    >
    > <%@ Page Language="VB" AutoEventWireup ="false" CodeFile="Defau lt.aspx.vb"
    > Inherits="_Defa ult" %>
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
    >
    > <html xmlns="http://www.w3.org/1999/xhtml" >
    > <head runat="server">
    > <title>Untitl ed Page</title>
    > </head>
    > <body>
    > <form id="form1" runat="server">
    > <div>
    > testing</div>
    > </form>
    > </body>
    > </html>
    >
    >[/color]

    Comment

    • Cowboy \(Gregory A. Beamer\)

      #3
      Re: cannot load http://localhost/default.aspx

      Set up a separate application pool for 2.0.
      Make sure that the app in question is set to run 2.0.
      Move it to the new application pool that is set for 2.0.

      Most likely, you have the app set for one version and placed in an app pool
      for a different version.

      NOTE: Best method to purpose a single app to a specific version of the
      framework is aspnet_regiis with an -s flag. See
      Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


      --
      Gregory A. Beamer

      *************** *************** *************** ****
      Think Outside the Box!
      *************** *************** *************** ****
      "scott" <aintnospamhere @yahoo.com> wrote in message
      news:OTiw3CihGH A.1264@TK2MSFTN GP05.phx.gbl...[color=blue]
      > Hi,
      >
      > From IIS6 and from a session on the 2003 server i attempt to browse to
      > http://localhost/default.aspx and get the following 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: Unrecognized configuration section
      > 'connectionStri ngs'
      >
      > Source Error:
      >
      >
      > Line 10: <configuratio n>
      > Line 11: <appSettings/>
      > Line 12: <connectionStri ngs/>
      > Line 13: <system.web>
      > Line 14: <!--
      >
      >
      > Source File: c:\inetpub\wwwr oot\web.config Line: 12
      >
      >
      >
      > --------------------------------------------------------------------------------
      >
      > Version Information: Microsoft .NET Framework Version:1.1.432 2.2300;
      > ASP.NET Version:1.1.432 2.2300
      >
      >
      > I tried changing ASP.NET version via Default Web Sites, Properties,
      > ASP.NET tab and switching to version 2.#. After this change and running
      > IISRESET i now get page not found when i attempt to browse to
      > http://localhost/default.aspx.
      >
      > Can anyone help ?
      >
      > NOTE:
      > default.aspx resides in c:\inetpub\wwwr oot
      > i can see IISTART.html no problem
      > i have admin righths
      >
      >
      > Thanks
      > Scott
      >
      >
      >
      > NOTE: default.aspx contains:
      >
      >
      > <%@ Page Language="VB" AutoEventWireup ="false" CodeFile="Defau lt.aspx.vb"
      > Inherits="_Defa ult" %>
      >
      > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
      >
      > <html xmlns="http://www.w3.org/1999/xhtml" >
      > <head runat="server">
      > <title>Untitl ed Page</title>
      > </head>
      > <body>
      > <form id="form1" runat="server">
      > <div>
      > testing</div>
      > </form>
      > </body>
      > </html>
      >[/color]


      Comment

      • Juan T. Llibre

        #4
        Re: cannot load http://localhost/default.aspx

        re:[color=blue]
        > Parser Error Message: Unrecognized configuration section 'connectionStri ngs'[/color]

        You are trying to run an ASP.NET 1.1 app with web.config settings
        which are only valid for ASP.NET 2.0.

        Use the "ASP.NET" tab in the IIS Manager to configure that app so it targets ASP.NET 2.0.




        Juan T. Llibre, asp.net MVP
        aspnetfaq.com : http://www.aspnetfaq.com/
        asp.net faq : http://asp.net.do/faq/
        foros de asp.net, en español : http://asp.net.do/foros/
        =============== =============== =====
        "scott" <aintnospamhere @yahoo.com> wrote in message news:OTiw3CihGH A.1264@TK2MSFTN GP05.phx.gbl...[color=blue]
        > Hi,
        >
        > From IIS6 and from a session on the 2003 server i attempt to browse to
        > http://localhost/default.aspx and get the following 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: Unrecognized configuration section 'connectionStri ngs'
        >
        > Source Error:
        >
        >
        > Line 10: <configuratio n>
        > Line 11: <appSettings/>
        > Line 12: <connectionStri ngs/>
        > Line 13: <system.web>
        > Line 14: <!--
        >
        >
        > Source File: c:\inetpub\wwwr oot\web.config Line: 12
        >
        >
        >
        > --------------------------------------------------------------------------------
        >
        > Version Information: Microsoft .NET Framework Version:1.1.432 2.2300; ASP.NET Version:1.1.432 2.2300
        >
        >
        > I tried changing ASP.NET version via Default Web Sites, Properties, ASP.NET tab and switching to
        > version 2.#. After this change and running IISRESET i now get page not found when i attempt to
        > browse to http://localhost/default.aspx.
        >
        > Can anyone help ?
        >
        > NOTE:
        > default.aspx resides in c:\inetpub\wwwr oot
        > i can see IISTART.html no problem
        > i have admin righths
        >
        >
        > Thanks
        > Scott
        >
        >
        >
        > NOTE: default.aspx contains:
        >
        >
        > <%@ Page Language="VB" AutoEventWireup ="false" CodeFile="Defau lt.aspx.vb" Inherits="_Defa ult" %>
        >
        > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
        >
        > <html xmlns="http://www.w3.org/1999/xhtml" >
        > <head runat="server">
        > <title>Untitl ed Page</title>
        > </head>
        > <body>
        > <form id="form1" runat="server">
        > <div>
        > testing</div>
        > </form>
        > </body>
        > </html>
        >[/color]


        Comment

        • scott

          #5
          Re: cannot load http://localhost/default.aspx

          [color=blue]
          > Set up a separate application pool for 2.0.[/color]

          i setup a new APP pool but cant seem to find the place to tell it to support
          2.0

          [color=blue]
          > Make sure that the app in question is set to run 2.0.[/color]

          how ?

          [color=blue]
          > Move it to the new application pool that is set for 2.0.[/color]


          how ?


          thanks for any help
          Scott


          Comment

          • scott

            #6
            Re: cannot load http://localhost/default.aspx

            done that already, previous post suggests

            default website, properties, asp.net tab, asp.net version changed to 2.#
            then IISRESET.

            is this right ?


            Comment

            • scott

              #7
              Re: cannot load http://localhost/default.aspx

              done that already, previous post suggests

              default website, properties, asp.net tab, asp.net version changed to 2.#
              then IISRESET.

              is this right ?


              Comment

              • Juan T. Llibre

                #8
                Re: cannot load http://localhost/default.aspx

                Yes, that is right.

                The error message, however, is quite specific :
                "Unrecogniz ed configuration section 'connectionStri ngs' "

                That is the error message sent when a 2.0 app is being targeted to 1.1.

                Have you changed the <configuration. ..> section header ?

                It should be :
                <configuratio n xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">




                Juan T. Llibre, asp.net MVP
                aspnetfaq.com : http://www.aspnetfaq.com/
                asp.net faq : http://asp.net.do/faq/
                foros de asp.net, en español : http://asp.net.do/foros/
                =============== =============== =====
                "scott" <aintnospamhere @yahoo.com> wrote in message news:OGPuIOlhGH A.3956@TK2MSFTN GP02.phx.gbl...[color=blue]
                > done that already, previous post suggests
                >
                > default website, properties, asp.net tab, asp.net version changed to 2.# then IISRESET.
                >
                > is this right ?
                >[/color]



                Comment

                • Juan T. Llibre

                  #9
                  Re: cannot load http://localhost/default.aspx

                  One more thing.

                  Did you do that for the "Default Web Site",
                  or for the *specific* application which is throwing the error?

                  Unless you're developing in the root application,
                  you need to do that for the specific application which is returning the error.




                  Juan T. Llibre, asp.net MVP
                  aspnetfaq.com : http://www.aspnetfaq.com/
                  asp.net faq : http://asp.net.do/faq/
                  foros de asp.net, en español : http://asp.net.do/foros/
                  =============== =============== =====
                  "scott" <aintnospamhere @yahoo.com> wrote in message news:OGPuIOlhGH A.3956@TK2MSFTN GP02.phx.gbl...[color=blue]
                  > done that already, previous post suggests
                  >
                  > default website, properties, asp.net tab, asp.net version changed to 2.# then IISRESET.
                  >
                  > is this right ?
                  >[/color]


                  Comment

                  • scott

                    #10
                    Re: cannot load http://localhost/default.aspx

                    [color=blue]
                    > That is the error message sent when a 2.0 app is being targeted to 1.1.
                    >
                    > Have you changed the <configuration. ..> section header ?
                    >
                    > It should be :
                    > <configuratio n
                    > xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">[/color]

                    i wouldnt know where to find the "<configuration ...> section header " even
                    if i did want to change it sorry.


                    Comment

                    • scott

                      #11
                      Re: cannot load http://localhost/default.aspx

                      > Did you do that for the "Default Web Site",[color=blue]
                      > or for the *specific* application which is throwing the error?[/color]

                      i changed the default website to 2.0 , could not find anywhere else to
                      change to 2.0 to be honest.
                      [color=blue]
                      > Unless you're developing in the root application,
                      > you need to do that for the specific application which is returning the
                      > error.[/color]

                      i will try creating a new app quickly in visual studio 2005 - maybe its a
                      problem in the setup in the code.


                      Comment

                      • Juan T. Llibre

                        #12
                        Re: cannot load http://localhost/default.aspx

                        re:[color=blue]
                        > i wouldnt know where to find the "<configuration ...> section header " even[/color]

                        In the web.config of your application, of course.



                        Juan T. Llibre, asp.net MVP
                        aspnetfaq.com : http://www.aspnetfaq.com/
                        asp.net faq : http://asp.net.do/faq/
                        foros de asp.net, en español : http://asp.net.do/foros/
                        =============== =============== =====
                        "scott" <aintnospamhere @yahoo.com> wrote in message news:On2SM0lhGH A.1612@TK2MSFTN GP04.phx.gbl...[color=blue]
                        >[color=green]
                        >> That is the error message sent when a 2.0 app is being targeted to 1.1.
                        >>
                        >> Have you changed the <configuration. ..> section header ?
                        >>
                        >> It should be :
                        >> <configuratio n xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">[/color]
                        >
                        > i wouldnt know where to find the "<configuration ...> section header " even if i did want to change
                        > it sorry.
                        >
                        >[/color]


                        Comment

                        Working...