Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

IIS Express and windows only authentication does not work #419

@jruckert

Description

@jruckert

Hi,

I've been trying to get Windows Authentication working by itself under IIS Express, and unless i have both "Windows Authentication" and "Anonymous Authentication" selected under the project properties I cannot run/debug the application in Visual Studio 2015.

Running under a command prompt, the application works using Kestrel + WebListener, so i have ruled out the application being the issue.

Error Message:

image

Configuration:

image

web.config file under wwwroot

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
    </handlers>
    <httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" forwardWindowsAuthToken="true" startupTimeLimit="3600" />
  </system.webServer>
</configuration>

applicationhost.config (under the project/.vs/config directory - Note it tends to create multiple entries here and under when you turn off/on authentication options - not sure if this is any issue.

<site name="Manage.Web(1)" id="2">
        <application path="/" applicationPool="Clr4IntegratedAppPool">
          <virtualDirectory path="/" physicalPath="C:\Repos\manage-ui\src\Manage.Web\wwwroot" />
        </application>
        <bindings>
          <binding protocol="http" bindingInformation="*:28249:localhost" />
        </bindings>
      </site>

....

<location path="Manage.Web(1)">
        <system.webServer>
            <security>
                <authentication>
                    <anonymousAuthentication enabled="false" />
                    <windowsAuthentication enabled="true" />
                </authentication>
            </security>
        </system.webServer>
    </location> 

Am i missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions