webbrowser在localhost中找不到该网站 [英] webbrowser can not find the website in localhost

查看:184
本文介绍了webbrowser在localhost中找不到该网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个生成网站的vs2008应用程序。


我有一个使用webbrowser的vs2008应用程序并执行此操作:

WebBrowser1.Navigate(新的Uri(地址))


地址是:

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


网站,webbrowser应用程序将打开网站确定


但如果生成应用程序未显示网站webbrowser应用程序可以

找不到/显示网站。


如果你知道发生了什么,我会很感激了解它。


谢谢


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.%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


推荐答案

AAron,


您在Cassino服务器中生成网站,该服务器现已集成在

Visual Studio Net中。一个用户可以连接。


当您在IDE外部运行网站时,它必须位于IIS

网络服务器上,在这种情况下来自机器你运行你的程序。


您可以通过:1226看到这一点,它不在IIS的本地主机中(

正常的网络服务器部分)已安装。


Cor


" AAaron123" < aa ******* @ roadrunner.comschreef在bericht

新闻:ea ************** @ TK2MSFTNGP04.phx.gbl ...
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" <aa*******@roadrunner.comschreef in bericht
news:ea**************@TK2MSFTNGP04.phx.gbl...

>我有一个生成网站的vs2008应用程序。


我有一个使用webbrowser的vs2008应用程序这样做:

WebBrowser1.Navigate(新Uri(地址))


地址是:

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


如果我正在运行生成网站的应用程序并且已打开

网站,则webbrowser应用程序将打开网站确定


但是如果生成的应用程序没有显示网站的webbrowser应用程序

找不到/显示网站。


如果你知道什么我想继续学习它。


谢谢

>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.%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




" Cor Ligthert [MVP]&q UOT; < no ************ @ planet.nlwrote in message

news:E3 ****************** **************** @ microsof t.com ...

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:E3**********************************@microsof t.com...

AAron,


您在Cassino服务器中生成网站,该服务器现已集成在

Visual Studio Net中。 。
AAron,

You generate the website in the Cassino server, which is integrated in
Visual Studio Net now. .



Cassino看起来和IE完全相同吗?

我问,因为我的显示看起来与IE相同。

可以我的VS配置为IE而不是Cassino。

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



但似乎WebBrowser应用程序只能在网站

代应用程序运行时显示网站?

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


> ;

当您在IDE外部运行网站时,它必须位于IIS

网络服务器上,在这种情况下,来自您运行程序的机器。


您可以通过:1226看到这一点,因为IIS安装了IIS

(正常的网络服务器部分),因此不在本地主机中。
>
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.



1226表示什么?我找不到一个名为

这个名字的文件夹,但是没有成功。\


非常感谢

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

Thanks a lot


>

Cor


" AAaron123" < aa ******* @ roadrunner.comschreef在bericht

新闻:ea ************** @ TK2MSFTNGP04.phx.gbl ...
>
Cor

"AAaron123" <aa*******@roadrunner.comschreef in bericht
news:ea**************@TK2MSFTNGP04.phx.gbl...

>>我有一个生成网站的vs2008应用程序。

我有一个使用webbrowser的vs2008应用程序并执行此操作:
WebBrowser1.Navigate(新Uri(地址))

地址是:

http:// localhost:1226 /%20Louis%20Jones /

如果我在跑步生成网站的应用程序已打开
网站,webbrowser应用程序将打开网站确定

但如果生成的应用程序没有显示网站的webbrowser应用程序
找不到/显示网站。

如果你知道发生了什么,我会很感激学习它。

谢谢

>>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.%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



7月30日下午4:20,AAaron123 < aaaron ... @ roadrunner.comwrote:
On Jul 30, 4:20 pm, "AAaron123" <aaaron...@roadrunner.comwrote:

" Cor Ligthert [MVP]" < notmyfirstn ... @ planet.nlwrote in message


新闻:E3 *********************** *********** @ microsof t.com ...
"Cor Ligthert[MVP]" <notmyfirstn...@planet.nlwrote in message

news:E3**********************************@microsof t.com...

AAron,
AAron,


您在Cassino服务器中生成网站,该服务器现已集成在

Visual Studio Net中。 。
You generate the website in the Cassino server, which is integrated in
Visual Studio Net now. .



Cassino看起来和IE完全相同吗?

我问,因为我的显示看起来与IE相同。

可以我的VS配置为IE而不是Cassino。


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



但是似乎WebBrowser应用程序只能在网站

代应用程序运行时显示网站?


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


当你在外面运行网站时在这种情况下,你必须在你运行你的程序的机器上使用IDE。/ b $ b
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.


您可以通过:1226看到这一点,它不在本地主机中,因为安装了IIS

(正常的Web服务器部分)。
You can see this by the :1226, which is not in the localhost as the IIS
(the normal webserver part) is installed.



1226表示什么?我找不到一个名为

这个名字的文件夹,但是没有成功。\


非常感谢


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

Thanks a lot


Cor
Cor


" AAaron123" < aaaron ... @ roadrunner.comschreef在bericht

新闻:ea ************** @ TK2MSFTNGP04.phx.gbl ...
"AAaron123" <aaaron...@roadrunner.comschreef in bericht
news:ea**************@TK2MSFTNGP04.phx.gbl...

>我有一个生成网站的vs2008应用程序。
>I have an vs2008 app that generates a website.


我有一个使用webbrowser的vs2008应用程序并执行此操作:

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


地址是:
the address is:


> http:// localhost:1226 / Mr.%20Louis%20Jones /


如果我正在运行生成网站的应用程序且已打开

网站,则webbrowser应用程序将打开网站OK
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



必须是您尝试连接的端口号。也许你的路由器阻止了

端口1226,你需要转发它或局域网

管理员与问题相关。


谢谢,


OnurGüzel

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


这篇关于webbrowser在localhost中找不到该网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆