如何使用匿名访问为本地asp.net webforms开发设置IIS 6?

时间:2022-09-03 19:50:13

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)

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

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 ?

无论如何都要一直到处输入Windows登录密码?

(I am using windows xp pro 64bit)

(我使用的是windows xp pro 64bit)

2 个解决方案

#1


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.

也许这对您网站的kerberos身份验证有些问题。只需在您的网站上停用即可。从c:\ Inetpub \ AdminScripts目录运行此命令。

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.

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

#2


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.

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

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

如果所有其他方法都失败了,对于本地开发,您也可以授予每个人访问目录的权限。

#1


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.

也许这对您网站的kerberos身份验证有些问题。只需在您的网站上停用即可。从c:\ Inetpub \ AdminScripts目录运行此命令。

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.

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

#2


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.

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

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

如果所有其他方法都失败了,对于本地开发,您也可以授予每个人访问目录的权限。