VS2005中用firefox访问 Asp.net Development Server 的站点的方法

解决方法参看下面链接。

Bug Details: asp.net Development Server need identification with Firefox on non IE-browser

http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=582fcb60-47cd-4475-869b-130786c0821d

具体来说就是在Firefox地址栏中输入:about:config

然后在过滤器中输入:NTLM

这时候我们在过滤的结果中,可以看到只有两项。

其中一项是:network.automatic-ntlm-auth.trusted-this

双击这一项,在输入值中输入 localhost

这里输入的为Asp.net Development Server的站点名。

关闭FireFox,重新访问Asp.net Development Server的站点就可以解决这个问题了。

原因:

ASP.Net development web server 对于每个请求,都会执行 NTLM 验证,以确定处理的是来自同一个用户的请求。

在IE中这是自动完成的,Firefox浏览器需要做以上设置才可以。