webbrowser can not find the website in localhost

A

AAaron123

I have an vs2008 app that generates a website.

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

the address is:

http://localhost:1226/Mr. Louis Jones/



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
 
C

Cor Ligthert[MVP]

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
 
A

AAaron123

Cor Ligthert said:
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
 
K

kimiraikkonen

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.


But it seems that the WebBrowser app can only display the site when the site
generation app is running?





What does the 1226 indicate? I've unsuccessfully looked for a folder with
that name.\

Thanks a lot

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
 
G

Gillard

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.WebServer.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\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE
/path: C:\Documents and Settings\Georges\Mes documents\ironspeed
 
C

Cor Ligthert[MVP]

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
 
A

Andrew Morton

Cor said:
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.

http://www.webwizguide.com/kb/asp_tutorials/installing_iis_winXP_pro.asp

Andrew
 
A

AAaron123

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
 
A

Andrew Morton

AAaron123 said:
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
 
A

AAaron123

Andrew Morton said:
AAaron123 said:
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??
 
A

Andrew Morton

AAaron123 said:
"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
 
A

AAaron123

Thanks, It took a while but I think I got it
Andrew Morton said:
AAaron123 said:
"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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top