Marthayaputra Han
Marthayaputra Han

Reputation: 133

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?

Upvotes: 6

Views: 4965

Answers (3)

Eric D. Johnson
Eric D. Johnson

Reputation: 11727

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

Upvotes: 5

ryandawkins
ryandawkins

Reputation: 1545

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>

Upvotes: 7

Kellen Lask
Kellen Lask

Reputation: 1

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

Upvotes: 0

Related Questions