5

我的项目启用了 Windows 身份验证。当我从 Rider 运行它时,它总是提示我“拒绝访问”。当我通过 Visual Studio 运行它时它工作正常。

我该如何解决这个问题?

4

3 回答 3

7

导航:<project>.idea/config/applicationhost.config

找到标签<authentication>并启用<windowsAuthentication>标签,如下所示:<windowsAuthentication enabled="true">

我的看起来像这样:

<windowsAuthentication enabled="true">
    <providers>
        <add value="Negotiate" />
        <add value="NTLM" />
    </providers>
</windowsAuthentication>
于 2017-08-09T15:18:41.023 回答
5

JetBrains 正在进行的工作,请参阅问题 RIDER-15230

只是建立在@RyanDawkins 答案的基础上,使用GUI 等价物

脚步

  1. 右键单击Web 应用程序从中启动的项目
  2. 选择属性...
  3. 在 Modal 中,在 Properties > Web 下有一个用于Windows 身份验证的复选框

截屏

在此处输入图像描述

这类似于 Visual Studio 的处理方式,它只是保存设置{SolutionFolder}/.idea/config而不是{SolutionFolder}/.vs/config

于 2018-04-13T18:13:19.567 回答
0

<project>.idea/config/applicationhost.config
我必须做两件事:
设置:<windowsAuthentication enabled="true">
设置:<anonymousAuthentication enabled="false">

于 2018-01-12T22:30:48.000 回答