6

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?

Pang
  • 9,073
  • 146
  • 84
  • 117

3 Answers3

7

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>
Pang
  • 9,073
  • 146
  • 84
  • 117
ryandawkins
  • 1,507
  • 4
  • 24
  • 37
5

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

enter image description here

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

Pang
  • 9,073
  • 146
  • 84
  • 117
Eric D. Johnson
  • 8,646
  • 8
  • 36
  • 44
0

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