2011-04-12 153 views
0

我在IIS 7.5上设置了一个测试网站,我在VisualStudio中创建了一个Web应用程序项目,并在经典管道模式中的新应用程序池中设置了一个Web站点。iis 7禁用Windows身份验证

我此行C:\Windows\System32\drivers\etc\hosts

192.168.50.142  dev.mybigdomain.org.uk

现在,如果我访问我的网站http://localhost/testHello/Default.aspx它工作正常, 但是当我尝试http://dev.mybigdomain.org.uk/testHello/Default.aspx我得到一个“Windows安全”窗口,要求进行身份验证,但如果输入“管理员”和密码它不能识别他们,只是再次问。

如何禁用身份验证?

回答

4

你有没有尝试在web.config中认证模式更改为形式

<system.web> 
... 
<authentication mode="Forms"> 

,而不是

<system.web> 
... 
<authentication mode="Windows"> 
+0

它帮助我,日Thnx – Florjon 2011-05-16 12:45:43