JetBrain Rider , Access denied when using IIS Express with Windows Authentication

余生长醉 提交于 2019-12-10 18:23:00

问题


I have an enabled Windows Authentication on my projects, when I run it from Rider, it always prompts me access denied. It's working fine when I run it via Visual Studio.

Anyone has any idea how to solve this?


回答1:


Navigate to: <project>.idea/config/applicationhost.config

Find the tag <authentication> and enable the <windowsAuthentication> tag like so: <windowsAuthentication enabled="true">

Mine looks like this:

<windowsAuthentication enabled="true">
    <providers>
        <add value="Negotiate" />
        <add value="NTLM" />
    </providers>
</windowsAuthentication>



回答2:


Work-in-progress by Jetbrains, see issue RIDER-15230

Just to build on @RyanDawkins answer with a GUI equivalent.

Steps

  1. Right-click the Project the web app launches from
  2. Select Properties ...
  3. In the Modal, under Properties > Web there is a checkbox for Windows authentication

Screenshot

This is similar to the Visual Studio way of doing things, it just saves the settings in {SolutionFolder}/.idea/config instead of {SolutionFolder}/.vs/config




回答3:


In <project>.idea/config/applicationhost.config
I had to do two things:
Set: <windowsAuthentication enabled="true">
Set: <anonymousAuthentication enabled="false">



来源:https://stackoverflow.com/questions/45560884/jetbrain-rider-access-denied-when-using-iis-express-with-windows-authenticatio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!