当我安装WAMP服务器时,Visual Studio的Localhost不显示。你是如何使它工作的?

时间:2022-10-30 23:32:01

I've first installed the WAMP server on my system. It used http://localhost to show my files in the www directory.

我首先在我的系统上安装了WAMP服务器。它使用http:// localhost在www目录中显示我的文件。

But then I installed visual studio 2008. It too uses the http://localhost/ But it doesn't show up. What should I do?

但后来我安装了visual studio 2008.它也使用http:// localhost /但它没有出现。我该怎么办?

2 个解决方案

#1


I assume you mean IIS? Cassini (the build in "debugging" webserver) uses high ports when you fire an app up. Either way you need to configure either WAMP or IIS to listen on a port other than port 80, then you can access one on http://localhost/ and one on http://localhost:MYPORT/.

我猜你的意思是IIS?当您启动应用程序时,Cassini(“调试”网络服务器中的内置版本)使用高端口。无论哪种方式,您需要配置WAMP或IIS以侦听端口80以外的端口,然后您可以访问http:// localhost /上的一个端口和http:// localhost:MYPORT /上的端口。

#2


VS uses it's own development server, and usually VS starts his own server in debug mode, and there isn't a common server executable. Since VS needs to start it's own server in debug mode to test .NET driven applications, it can't show your WAMP applications because it usually runs in other port. Also, you can't run PHP applications under VS.

VS使用它自己的开发服务器,通常VS在调试模式下启动自己的服务器,并且没有通用的服务器可执行文件。由于VS需要在调试模式下启动自己的服务器来测试.NET驱动的应用程序,因此它无法显示您的WAMP应用程序,因为它通常在其他端口运行。此外,您无法在VS下运行PHP应用程序。

Try looking at server connection that the browser brings you at the application URL.

尝试查看浏览器为应用程序URL提供的服务器连接。

#1


I assume you mean IIS? Cassini (the build in "debugging" webserver) uses high ports when you fire an app up. Either way you need to configure either WAMP or IIS to listen on a port other than port 80, then you can access one on http://localhost/ and one on http://localhost:MYPORT/.

我猜你的意思是IIS?当您启动应用程序时,Cassini(“调试”网络服务器中的内置版本)使用高端口。无论哪种方式,您需要配置WAMP或IIS以侦听端口80以外的端口,然后您可以访问http:// localhost /上的一个端口和http:// localhost:MYPORT /上的端口。

#2


VS uses it's own development server, and usually VS starts his own server in debug mode, and there isn't a common server executable. Since VS needs to start it's own server in debug mode to test .NET driven applications, it can't show your WAMP applications because it usually runs in other port. Also, you can't run PHP applications under VS.

VS使用它自己的开发服务器,通常VS在调试模式下启动自己的服务器,并且没有通用的服务器可执行文件。由于VS需要在调试模式下启动自己的服务器来测试.NET驱动的应用程序,因此它无法显示您的WAMP应用程序,因为它通常在其他端口运行。此外,您无法在VS下运行PHP应用程序。

Try looking at server connection that the browser brings you at the application URL.

尝试查看浏览器为应用程序URL提供的服务器连接。