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

3

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?

Strunk answered 8/8, 2017 at 6:31 Comment(3)
Have you tried running Rider as administratorExpostulation
I am having the same issue. It appears that IIS express is allowing anonymous access to the website. I'm looking into configuring it to force auth.Jackqueline
Cant you provide your web.configSquinteyed
J
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>
Jackqueline answered 9/8, 2017 at 15:18 Comment(2)
Cool, it works Thanks! But why Rider doesn't respect the web.config, I wonderStrunk
This is now in the .vs/config/ settings, so they followed suit putting it in the .idea/config/ settings https://mcmap.net/q/556221/-windows-authentication-doesn-39-t-work-when-i-run-project-from-visual-studioEnugu
E
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

Enugu answered 13/4, 2018 at 18:13 Comment(0)
F
0

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

Footfall answered 12/1, 2018 at 22:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.