Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 964
Marthayaputra Han Avatar asked Aug 08 '17 06:08

Marthayaputra Han


Video Answer


2 Answers

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>
like image 96
ryandawkins Avatar answered Jan 04 '23 12:01

ryandawkins


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

like image 38
Eric D. Johnson Avatar answered Jan 04 '23 10:01

Eric D. Johnson