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

I have Windows Authentication enabled in my projects, when I run it from Rider it always asks me to be denied access. It works great when I run it through Visual Studio.

Does anyone know how to solve this?

+3


source to share


3 answers


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

Find the tag <authentication>

and include the tag <windowsAuthentication>

like so:<windowsAuthentication enabled="true">



Mine looks like this:

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

      

+3


source


Work in progress with Jetbrains, see issue RIDER-15230

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

Actions

  • Right click on the project launched by the web application from
  • Select Properties ...
  • In the module under Properties> Web, there is a checkbox for Windows Authentication.


Screenshot

enter image description here

This is similar to the way Visual Studio works, it just saves the settings in {SolutionFolder}/.idea/config

instead of{SolutionFolder}/.vs/config

+1


source


Q <project>.idea/config/applicationhost.config


I had to do two things:
Set: <windowsAuthentication enabled="true">


Set:<anonymousAuthentication enabled="false">

0


source







All Articles