问题
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.
Anyone has any idea how to solve this?
回答1:
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>
回答2:
Work-in-progress by Jetbrains, see issue RIDER-15230
Just to build on @RyanDawkins answer with a GUI equivalent.
Steps
- Right-click the Project the web app launches from
- Select Properties ...
- In the Modal, under Properties > Web there is a checkbox for Windows authentication
Screenshot
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
回答3:
In <project>.idea/config/applicationhost.config
I had to do two things:
Set: <windowsAuthentication enabled="true">
Set: <anonymousAuthentication enabled="false">
来源:https://stackoverflow.com/questions/45560884/jetbrain-rider-access-denied-when-using-iis-express-with-windows-authenticatio