Windows身份验证MVC应用程序 [英] Windows authentication MVC application

查看:100
本文介绍了Windows身份验证MVC应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Server中发布了一个MVC Web应用程序以及Windows身份验证,但是当从本地计算机查看站点URL时,它要求提供凭证。

任何人都可以建议在IIS上部署步骤。< br $> b $ b

提前致谢。



我的尝试:



我用

I have publish a MVC web application in Server along with Windows authentication, but when view site URL from local Machine, it asked for credential.
Can any one suggest steps to deploy on IIS.

Thanks in advance.

What I have tried:

I have made in

& web config




<authentication mode="Windows"/>

  <authorization>
    <deny users="?"/>
  </authorization>



& appsetting


& appsetting

<add key="autoFormsAuthentication" value="false" />
<add key="enableSimpleMembership" value="false"/>

推荐答案

hi



尝试在解决方案资源管理器中选择项目名称,然后在属性资源管理器中,单击以启用Windows身份验证并禁用匿名身份验证



它对我有用。
hi

try to Select the project name in Solution Explorer and then in the Property Explorer, click to enable Windows Authentication and disable anonymous authentication

it worked for me.


这篇关于Windows身份验证MVC应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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