Search code examples
windows-authenticationiis-expressrider

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


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.

How can I solve this?


Solution

  • 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>