webbrowser can not find the website in localhost

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

    webbrowser can not find the website in localhost

    I have an vs2008 app that generates a website.

    I have a vs2008 app that uses the webbrowser and does this:
    WebBrowser1.Nav igate(New Uri(address))

    the address is:





    If I'm running the app that generates the website and it has open the
    website, the webbrowser app will open the website OK



    But if the generating app is not showing the website the webbrowser app can
    not find/show the website.



    If you know what is going on I'd appreciate learning about it.



    Thanks




  • Cor Ligthert[MVP]

    #2
    Re: webbrowser can not find the website in localhost

    AAron,

    You generate the website in the Cassino server, which is integrated in
    Visual Studio Net now. Capable for one user to connect.

    As you run the the website outside of the IDE it has to be on the IIS
    webserver in this case from the machine you run your program in.

    You can see this by the :1226, which is not in the localhost as the IIS (the
    normal webserver part) is installed.

    Cor

    "AAaron123" <aaaron123@road runner.comschre ef in bericht
    news:ea8HLTd8IH A.3384@TK2MSFTN GP04.phx.gbl...
    >I have an vs2008 app that generates a website.
    >
    I have a vs2008 app that uses the webbrowser and does this:
    WebBrowser1.Nav igate(New Uri(address))
    >
    the address is:
    >

    >
    >
    >
    If I'm running the app that generates the website and it has open the
    website, the webbrowser app will open the website OK
    >
    >
    >
    But if the generating app is not showing the website the webbrowser app
    can not find/show the website.
    >
    >
    >
    If you know what is going on I'd appreciate learning about it.
    >
    >
    >
    Thanks
    >
    >
    >
    >

    Comment

    • AAaron123

      #3
      Re: webbrowser can not find the website in localhost


      "Cor Ligthert[MVP]" <notmyfirstname @planet.nlwrote in message
      news:E39C002F-B0A1-460D-B7F2-37EFCE558A2D@mi crosoft.com...
      AAron,
      >
      You generate the website in the Cassino server, which is integrated in
      Visual Studio Net now. .
      Does Cassino look identical to IE?
      I ask because my display looked identical to IE.
      Could my VS be configured to us IE instead of Cassino.

      >Capable for one user to connect
      But it seems that the WebBrowser app can only display the site when the site
      generation app is running?
      >
      As you run the the website outside of the IDE it has to be on the IIS
      webserver in this case from the machine you run your program in.
      >
      You can see this by the :1226, which is not in the localhost as the IIS
      (the normal webserver part) is installed.
      What does the 1226 indicate? I've unsuccessfully looked for a folder with
      that name.\

      Thanks a lot
      >
      Cor
      >
      "AAaron123" <aaaron123@road runner.comschre ef in bericht
      news:ea8HLTd8IH A.3384@TK2MSFTN GP04.phx.gbl...
      >>I have an vs2008 app that generates a website.
      >>
      >I have a vs2008 app that uses the webbrowser and does this:
      >WebBrowser1.Na vigate(New Uri(address))
      >>
      >the address is:
      >>
      >http://localhost:1226/Mr.%20Louis%20Jones/
      >>
      >>
      >>
      >If I'm running the app that generates the website and it has open the
      >website, the webbrowser app will open the website OK
      >>
      >>
      >>
      >But if the generating app is not showing the website the webbrowser app
      >can not find/show the website.
      >>
      >>
      >>
      >If you know what is going on I'd appreciate learning about it.
      >>
      >>
      >>
      >Thanks
      >>
      >>
      >>
      >>
      >

      Comment

      • kimiraikkonen

        #4
        Re: webbrowser can not find the website in localhost

        On Jul 30, 4:20 pm, "AAaron123" <aaaron...@road runner.comwrote :
        "Cor Ligthert[MVP]" <notmyfirstn... @planet.nlwrote in message
        >
        news:E39C002F-B0A1-460D-B7F2-37EFCE558A2D@mi crosoft.com...
        >
        AAron,
        >
        You generate the website in the Cassino server, which is integrated in
        Visual Studio Net now. .
        >
        Does Cassino look identical to IE?
        I ask because my display looked identical to IE.
        Could my VS be configured to us IE instead of Cassino.
        >
        Capable for one user to connect
        >
        But it seems that the WebBrowser app can only display the site when the site
        generation app is running?
        >
        >
        >
        As you run the the website outside of the IDE it has to be on the IIS
        webserver in this case from the machine you run your program in.
        >
        You can see this by the :1226, which is not in the localhost as the IIS
        (the normal webserver part) is installed.
        >
        What does the 1226 indicate? I've unsuccessfully looked for a folder with
        that name.\
        >
        Thanks a lot
        >
        >
        >
        Cor
        >
        "AAaron123" <aaaron...@road runner.comschre ef in bericht
        news:ea8HLTd8IH A.3384@TK2MSFTN GP04.phx.gbl...
        >I have an vs2008 app that generates a website.
        >
        I have a vs2008 app that uses the webbrowser and does this:
        WebBrowser1.Nav igate(New Uri(address))
        >
        the address is:
        >>
        If I'm running the app that generates the website and it has open the
        website, the webbrowser app will open the website OK
        >
        But if the generating app is not showing the website the webbrowser app
        can not find/show the website.
        >
        If you know what is going on I'd appreciate learning about it.
        >
        Thanks
        It must be port number you're trying to connect through. Maybe the
        port 1226 is blocked by your router and you need to forward it or LAN
        admin related to the problem.

        Thanks,

        Onur Güzel

        Comment

        • Gillard

          #5
          Re: webbrowser can not find the website in localhost

          a qeb site NEED a webserver to run

          if you are using Visual Web Develloper
          you have somewhere on you hard drive a file named "WebDev.WebServ er.EXE"

          find it run it with the apropriate parrameter and you'll be able to acces
          your web site from a webbrowser

          it should be something like this


          "C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\WebDev.WebSer ver.EXE
          /path: C:\Documents and Settings\George s\Mes documents\irons peed

          "AAaron123" <aaaron123@road runner.comwrote in message
          news:ea8HLTd8IH A.3384@TK2MSFTN GP04.phx.gbl...
          I have an vs2008 app that generates a website.
          >
          I have a vs2008 app that uses the webbrowser and does this:
          WebBrowser1.Nav igate(New Uri(address))
          >
          the address is:
          >

          >
          >
          >
          If I'm running the app that generates the website and it has open the
          website, the webbrowser app will open the website OK
          >
          >
          >
          But if the generating app is not showing the website the webbrowser app
          can not find/show the website.
          >
          >
          >
          If you know what is going on I'd appreciate learning about it.
          >
          >
          >
          Thanks
          >
          >
          >
          >

          Comment

          • Cor Ligthert[MVP]

            #6
            Re: webbrowser can not find the website in localhost

            AAron,

            Casino is a replacement the IIS server for situation where there is a Home
            OS version used. Those have no IIS.

            To make it easier it is now in fact implemented in Visual Studio (with
            another name, it stared as Personal WebServer on Windows '98).

            Your OS itself is using a real Internet Information Server from which the
            data is normally located in the Root from your C direve and has the name
            InetPub.

            You normally can install IIS with Configuration Software and then Microsoft
            parts, there is than a checkbox (in Vista) or something else that you can
            check to install it.

            At the moment I am behind a Dutch OS so I am not sure about the names in
            English. Normally somebody else will show the correct names in English.

            Cor


            "AAaron123" <aaaron123@road runner.comschre ef in bericht
            news:Ojt55bk8IH A.2348@TK2MSFTN GP06.phx.gbl...
            >
            "Cor Ligthert[MVP]" <notmyfirstname @planet.nlwrote in message
            news:E39C002F-B0A1-460D-B7F2-37EFCE558A2D@mi crosoft.com...
            >AAron,
            >>
            >You generate the website in the Cassino server, which is integrated in
            >Visual Studio Net now. .
            >
            Does Cassino look identical to IE?
            I ask because my display looked identical to IE.
            Could my VS be configured to us IE instead of Cassino.
            >
            >
            >>Capable for one user to connect
            >
            But it seems that the WebBrowser app can only display the site when the
            site generation app is running?
            >
            >>
            >As you run the the website outside of the IDE it has to be on the IIS
            >webserver in this case from the machine you run your program in.
            >>
            >You can see this by the :1226, which is not in the localhost as the IIS
            >(the normal webserver part) is installed.
            >
            What does the 1226 indicate? I've unsuccessfully looked for a folder with
            that name.\
            >
            Thanks a lot
            >
            >>
            >Cor
            >>
            >"AAaron123" <aaaron123@road runner.comschre ef in bericht
            >news:ea8HLTd8I HA.3384@TK2MSFT NGP04.phx.gbl.. .
            >>>I have an vs2008 app that generates a website.
            >>>
            >>I have a vs2008 app that uses the webbrowser and does this:
            >>WebBrowser1.N avigate(New Uri(address))
            >>>
            >>the address is:
            >>>
            >>http://localhost:1226/Mr.%20Louis%20Jones/
            >>>
            >>>
            >>>
            >>If I'm running the app that generates the website and it has open the
            >>website, the webbrowser app will open the website OK
            >>>
            >>>
            >>>
            >>But if the generating app is not showing the website the webbrowser app
            >>can not find/show the website.
            >>>
            >>>
            >>>
            >>If you know what is going on I'd appreciate learning about it.
            >>>
            >>>
            >>>
            >>Thanks
            >>>
            >>>
            >>>
            >>>
            >>
            >
            >

            Comment

            • Andrew Morton

              #7
              Re: webbrowser can not find the website in localhost

              Cor Ligthert[MVP] wrote:
              You normally can install IIS with Configuration Software and then
              Microsoft parts, there is than a checkbox (in Vista) or something
              else that you can check to install it.
              >
              At the moment I am behind a Dutch OS so I am not sure about the names
              in English. Normally somebody else will show the correct names in
              English.
              The OP appears to be using XP Pro, so IIS installation will be through the
              Add/Remove Windows Components section of the Add/Remove Software control
              panel.



              Andrew


              Comment

              • AAaron123

                #8
                Re: webbrowser can not find the website in localhost

                Thanks I had it installed before the post ( and it is XP).


                I think Cor probably answered my original question but I don't have the
                background to understand the answer. That is, how come:


                If the generating app is showing the website, the webbrowser app can
                find/show the website.


                But if the generating app is not showing the website, the webbrowser app can
                not find/show the website.

                Thanks



                "Andrew Morton" <akm@in-press.co.uk.inv alidwrote in message
                news:6fdfumFatb 88U1@mid.indivi dual.net...
                Cor Ligthert[MVP] wrote:
                >You normally can install IIS with Configuration Software and then
                >Microsoft parts, there is than a checkbox (in Vista) or something
                >else that you can check to install it.
                >>
                >At the moment I am behind a Dutch OS so I am not sure about the names
                >in English. Normally somebody else will show the correct names in
                >English.
                >
                The OP appears to be using XP Pro, so IIS installation will be through the
                Add/Remove Windows Components section of the Add/Remove Software control
                panel.
                >

                >
                Andrew
                >

                Comment

                • Andrew Morton

                  #9
                  Re: webbrowser can not find the website in localhost

                  AAaron123 wrote:
                  Thanks I had it installed before the post ( and it is XP).
                  [I googled your OE version from the post headers to find that.]
                  >
                  I think Cor probably answered my original question but I don't have
                  the background to understand the answer. That is, how come:
                  >
                  If the generating app is showing the website, the webbrowser app can
                  find/show the website.
                  >
                  But if the generating app is not showing the website, the webbrowser
                  app can not find/show the website.
                  I think you're asking the question to which the answer is [I think that] the
                  Visual Studio Development Server is only invoked from VS. Once you stop
                  debugging/viewing a page from VS, the VSDS is shut down.

                  To make an ASP.NET project default to using IIS, you can change it in the
                  project's properties (under the Project menu).

                  Seeing as you want it to eventually run under IIS, you might as well test it
                  under IIS. And it stops those incredibly annoying pop-ups from the tray.

                  Andrew


                  Comment

                  • AAaron123

                    #10
                    Re: webbrowser can not find the website in localhost


                    "Andrew Morton" <akm@in-press.co.uk.inv alidwrote in message
                    news:6fdvgnFb21 5pU1@mid.indivi dual.net...
                    AAaron123 wrote:
                    >Thanks I had it installed before the post ( and it is XP).
                    >
                    [I googled your OE version from the post headers to find that.]
                    >
                    >>
                    >I think Cor probably answered my original question but I don't have
                    >the background to understand the answer. That is, how come:
                    >>
                    >If the generating app is showing the website, the webbrowser app can
                    >find/show the website.
                    >>
                    >But if the generating app is not showing the website, the webbrowser
                    >app can not find/show the website.
                    >
                    I think you're asking the question to which the answer is [I think that]
                    the Visual Studio Development Server is only invoked from VS. Once you
                    stop debugging/viewing a page from VS, the VSDS is shut down.
                    And the port number is directed to VSDS??
                    >
                    To make an ASP.NET project default to using IIS, you can change it in the
                    project's properties (under the Project menu).
                    >
                    Seeing as you want it to eventually run under IIS, you might as well test
                    it under IIS. And it stops those incredibly annoying pop-ups from the
                    tray.
                    >
                    Andrew
                    >

                    Comment

                    • Andrew Morton

                      #11
                      Re: webbrowser can not find the website in localhost

                      AAaron123 wrote:
                      "Andrew Morton"wrote
                      >I think you're asking the question to which the answer is [I think
                      >that] the Visual Studio Development Server is only invoked from VS.
                      >Once you stop debugging/viewing a page from VS, the VSDS is shut
                      >down.
                      >
                      And the port number is directed to VSDS??
                      Exactly. It means that IIS can be running on the same machine at the same
                      time: no more than one application can be assigned per port.

                      Andrew


                      Comment

                      • AAaron123

                        #12
                        Re: webbrowser can not find the website in localhost

                        Thanks, It took a while but I think I got it
                        "Andrew Morton" <akm@in-press.co.uk.inv alidwrote in message
                        news:6fg65vFbb3 llU1@mid.indivi dual.net...
                        AAaron123 wrote:
                        >"Andrew Morton"wrote
                        >>I think you're asking the question to which the answer is [I think
                        >>that] the Visual Studio Development Server is only invoked from VS.
                        >>Once you stop debugging/viewing a page from VS, the VSDS is shut
                        >>down.
                        >>
                        >And the port number is directed to VSDS??
                        >
                        Exactly. It means that IIS can be running on the same machine at the same
                        time: no more than one application can be assigned per port.
                        >
                        Andrew
                        >

                        Comment

                        Working...