+ -
当前位置:首页 → 问答吧 → 为什么一个.net网站必须在IIS里设置成集成Windows身份认证才能访问?

为什么一个.net网站必须在IIS里设置成集成Windows身份认证才能访问?

时间:2010-09-28

来源:互联网

这台装有IIS的服务器在工作组里。
在本机的浏览器里敲iP都不行。
请问跟什么设置有关?例如Web.config。
请例举所有可能。

作者: gfz   发布时间: 2010-09-28

本机你输入的IP是什么? 127.0.0.1 ?

注意端口号 设置匿名访问 映射主机头

作者: q107770540   发布时间: 2010-09-28

提示什么?

作者: net_lover   发布时间: 2010-09-28

web.config里的system.web配置节,<authentication mode="...."/>
你的验证模式是啥?

作者: camperer   发布时间: 2010-09-28

引用 1 楼 q107770540 的回复:
本机你输入的IP是什么? 127.0.0.1 ?

注意端口号 设置匿名访问 映射主机头

我敲的IP是:192.168.4.211

作者: gfz   发布时间: 2010-09-28

引用 2 楼 net_lover 的回复:
提示什么?


提示:
Server Error in '/VantagePointPortal' Application.
--------------------------------------------------------------------------------

Access is denied. 
Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL. 

Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.

作者: gfz   发布时间: 2010-09-28

ping 一下192.168.4.211 看能否ping的通
ping不通查看防火墙

本机直接用127.0.0.1即可

检查IIS用户权限 是否可以访问网站根目录
http://support.microsoft.com/kb/810881/zh-cn

作者: q107770540   发布时间: 2010-09-28

当然能ping通了!

作者: gfz   发布时间: 2010-09-28

我的是windows 2003操作系统

作者: gfz   发布时间: 2010-09-28

引用 3 楼 camperer 的回复:
web.config里的system.web配置节,<authentication mode="...."/>
你的验证模式是啥?

我的配置:
<authentication mode="Windows"/>

作者: gfz   发布时间: 2010-09-28

<authentication mode="Forms"/>

iis里启用匿名访问

物理文件的属性-安全性设置匿名帐号可读取

作者: net_lover   发布时间: 2010-09-28

引用 10 楼 net_lover 的回复:
<authentication mode="Forms"/>

iis里启用匿名访问

物理文件的属性-安全性设置匿名帐号可读取

你说的我都做了

作者: gfz   发布时间: 2010-09-28

localhost可以访问吗
127.0.0.1可以访问吗

作者: net_lover   发布时间: 2010-09-28

引用 12 楼 net_lover 的回复:
localhost可以访问吗
127.0.0.1可以访问吗

在钩选了“集成Windows身份认证”后,localhost可以直接访问
127.0.0.1必须输入用户名、密码才能访问
两种方法都直接跳转到http://localhost/VantagePointPortal/

作者: gfz   发布时间: 2010-09-28

热门下载

更多