Asp.net mvc 4 Windows身份验证不适用于使用IIS 7.0的Windows Server 2008上的MVC 4应用程序

Asp.net mvc 4 Windows身份验证不适用于使用IIS 7.0的Windows Server 2008上的MVC 4应用程序,asp.net-mvc-4,iis-7,windows-server-2008,windows-authentication,Asp.net Mvc 4,Iis 7,Windows Server 2008,Windows Authentication,获取此错误: HTTP错误401.1-未经授权 您没有使用您提供的凭据查看此目录或页面的权限 我已在使用IIS 7.5的Windows 7上成功地安装了Windows身份验证,只是没有在测试服务器(Windows server 2008)上安装。测试服务器在网络中,我可以访问 我尝试过的事情: 已启用Windows功能,Windows身份验证 在IIS(7.0)身份验证中,将Windows身份验证设置为enabled,将匿名身份验证设置为disabled 这来自web.config文件:

获取此错误:

HTTP错误401.1-未经授权 您没有使用您提供的凭据查看此目录或页面的权限

我已在使用IIS 7.5的Windows 7上成功地安装了Windows身份验证,只是没有在测试服务器(Windows server 2008)上安装。测试服务器在网络中,我可以访问

我尝试过的事情:

  • 已启用Windows功能,Windows身份验证
  • 在IIS(7.0)身份验证中,将Windows身份验证设置为enabled,将匿名身份验证设置为disabled
  • 这来自web.config文件:
  • 
    

    我想我想不明白。有什么想法吗?

    如上所述,当我在windows 7计算机上发布并浏览到该应用程序时,该应用程序在没有用户/通行证弹出窗口的情况下工作。但是如果我发布并浏览到测试服务器(WindowsServer2008)上的应用程序,我会不断得到一个user/pass弹出窗口

    奇怪的是,从测试服务器浏览应用程序不起作用。但是,只有在pop中输入user/pass后,才能从我自己的计算机(Windows 7)浏览到在测试服务器上发布的应用程序


    我仍然不知道为什么在测试服务器上不能浏览应用程序。这是一个虚拟机,因此当我登录时,它可能会将我识别为意外情况。

    请您在上查看我的答案。
    <system.web>
        <compilation debug="true" targetFramework="4.5"/>
        <httpRuntime />
        <authentication mode="Windows" />
        <authorization>
          <allow users="MyDomain\SomeUser" />
          <deny users="*" />
        </authorization>
        <pages controlRenderingCompatibilityVersion="4.0" />
      </system.web>