Web应用程序通过Visual Studio工作,但不能在IIS服务器中工作 [英] Web application working through Visual studio but not working in IIS server

查看:72
本文介绍了Web应用程序通过Visual Studio工作,但不能在IIS服务器中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在IIS上运行我的Web项目.

我已经安装了IIS并创建了虚拟目录.我只是尝试通过两种方式运行应用程序.
注意:这里我使用了一个ActiveX控件
1] http://localhost//virtualdirectoryname/default.aspx
2] http://ipaddress//virtualdirectoryname/default.aspx

第一个链接正常工作,但插入了"localhost",在第二种情况下,我只使用了"ipaddress".

实际上两者相同,但是第二个链接不起作用.我必须在IIS或项目中设置任何属性吗?

请对此提供帮助或建议我...

谢谢....

I am trying to run my web project on IIS.

I have installed IIS and created virtual directory. I just tried to run application by two ways.
Note :Here I have used one ActiveX control
1] http://localhost//virtualdirectoryname/default.aspx
2] http://ipaddress//virtualdirectoryname/default.aspx

1st link is working properly but insted of "localhost", I just used "ipaddress" in the second case.

Actually both are same but second link is not working. Is there any property that I have to set in IIS or in my project?

Please help on this or suggest me...

Thanks....

推荐答案

localhost是IP地址127.0.0.1,它与您的计算机IP地址不同.为了使IIS也接受该IP地址,您必须更改绑定.创建虚拟目录的网站需要侦听端口80上的您的计算机IP".因此,请检查您的IIS配置.

localhost is IP address 127.0.0.1 which is not the same as your computers IP address. In order for IIS to also accept this IP address you''ll have to change the binding. The website your virtual directory was created on needs to listen on "your computers IP" at port 80. So check your IIS configuration.

Regards,


我已经看过几次了,这通常是由不正确的代理服务器配置引起的.如果您可以通过telnet访问它(这不会通过代理进行访问),那么您已经有效地验证了某种服务(不一定是IIS!)正在该端口上运行.
如果您使用的是Internet Explorer而未使用代理,或者如果您必须使用代理,请为异常添加显式声明,而不要依赖绕过本地地址的代理",我建议禁用自动检测代理选项.复选框.
I have seen this a few times and it is usually caused by an incorrect proxy server configuration. If you can access it via telnet (this would not be going via the proxy) then you have effectively verified that a service of some kind (not necessarily IIS!) is running on that port.
I recommend disabling the auto-detect proxy option if you are using Internet Explorer and are not using a proxy or if you must use a proxy add explicit declarations for exceptions rather than relying on the "Bypass Proxy for Local Addresses" checkbox.


这篇关于Web应用程序通过Visual Studio工作,但不能在IIS服务器中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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