如何设置 IIS 6 并进行匿名访问以进行本地 asp.net webforms 开发?

发布于 2024-07-13 04:43:55 字数 246 浏览 6 评论 0原文

当我设置 IIS6 在本地开发项目时,我必须在目录安全性下启用“集成 Windows 身份验证”,以便我的 CSS 和 要显示的图像。 (注意:我已经仔细检查网络服务是否有权访问我的 Web 应用程序中的所有目录)

但是,这通常会导致我的浏览器在运行应用程序时提示我输入 Windows 登录用户名和密码。

有什么办法可以避免一直输入 Windows 登录密码吗?

(我使用的是Windows XP Pro 64位)

When I setup IIS6 to develop projects locally I have to enable "Integrated Windows Authentication" under directory security in order for my CSS & Images to show up. (Note: I have double checked that network service has rights to all directories in my web application)

However this often causes my browser to prompt me for windows login username and password when I am running the application.

Is there anyway to get around entering a windows login password all the time ?

(I am using windows xp pro 64bit)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

时光无声 2024-07-20 04:43:55

也许是您网站的 kerberos 身份验证存在问题。 只需在您的网站上禁用它即可。 从 c:\Inetpub\AdminScripts 目录运行此命令。

cscript adsutil.vbs set w3svc/WebSite/root/NTAuthenticationProviders "NTLM"

或者将身份验证更改为匿名。 并确保目录安全选项卡中的用户 (IUSR_computername) 有权访问所述目录。 访问文件和其他资源的不是应用程序池用户。

Maybe it is some problem with the kerberos authentication to your web site. Just disable it on your site. from the c:\Inetpub\AdminScripts directory run this command.

cscript adsutil.vbs set w3svc/WebSite/root/NTAuthenticationProviders "NTLM"

Or change the authentication to anonymous. And make sure that the user in the directory security tab (IUSR_computername) has access to said directories. It is not the application pool user who access files and other resources.

苏璃陌 2024-07-20 04:43:55

嗯,它当然不是应该的那样!

您说您已经仔细检查了网络服务是否有权访问这些目录。 但对于匿名访问,需要访问的帐户是 IUSR_[machinename] 帐户。 该帐户在“目录安全性”选项卡下指定。

如果一切都失败了,对于本地开发,您不妨授予每个人对目录的访问权限。

Well it certainly is not as it's supposed to be!

You say you've double checked that Network Service has access to the directories. But with anonymous access, the account that needs access is the IUSR_[machinename] account. The account is specified under the Directory Security tab.

If all else fails, for local development you might as well grant everyone access to the directories.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文