关闭/禁用Windows身份验证的asp.net-mvc [英] Turn off / Disable windows authentication for asp.net-mvc

查看:130
本文介绍了关闭/禁用Windows身份验证的asp.net-mvc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个新的asp.net-mvc项目,在安装过程中,我选择使用Windows身份验证.

I created a new asp.net-mvc project and during setup I chose to use Windows Authentication.

现在我想将其关闭(至少一段时间).

Now I like to turn it off(at least for a while).

我将web.config更改为此

I changed the web.config to this

 <authentication mode="None" />

但是那并没有改变任何东西.它仍然会提示我.我正在使用IIS Express.

But that does change anything. It will still prompt me. I am using the IIS Express.

更新:我的意思是使用Firefox时它仍然提示我. Internet Explorer将继续,并且不会显示我的域用户名

UPDATE: I mean it still prompts me when using Firefox. Internet Explorer will continue and not show my domain username

推荐答案

Web配置应覆盖IIS express配置,但在这种情况下似乎没有.您可以尝试在IIS级别上将其关闭.

The web config should overwrite the IIS express config but in this case it seems it does not. What you can try to do is to turn it off on the IIS level as well.

您可以转到此目录\ IISExpress \ config \ applicationhost.config打开此文件并设置<windowsAuthentication enabled="false" />.

You can go to this directory \IISExpress\config\applicationhost.config open up this file and set the <windowsAuthentication enabled="false" />.

这篇关于关闭/禁用Windows身份验证的asp.net-mvc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆