Windows authentication not working with EPiServer 10 and newest EPiServer Visual Studio Templates?

Vote:
 

Looking forward to build new Intranet-site, I installed EPiServer 10 Alloy sample site with newest Visual Studio templates on Visual Studio 2015/IISExpress. After successful initial setup, I changed the default form-authentication to windows logon-authentication, but site stopped working.

Every page I select it tries to redirect me to logon page with following error:

IIS 10.0 Detailed Error - 404.15 - Not Found

HTTP Error 404.15 - Not Found

The request filtering module is configured to deny a request where the query string is too long.
And the url it creates in browser's address bar looks this:
http://localhost:57073/util/login.aspx?ReturnUrl=%2Futil%2Flogin.aspx%3FReturnUrl%3D%252Futil%252Flogin.aspx%253FReturnUrl%253D%25252Futil%25252Flogin.aspx%25253FReturnUrl%25253D%2525252Futil%2525252Flogin.aspx%2525253FReturnUrl%2525253D%252525252Futil%252525252Flogin.aspx%252525253FReturnUrl%252525253D%25252525252Futil%25252525252Flogin.aspx%25252525253FReturnUrl%25252525253D%2525252525252Futil%2525252525252Flogin.aspx%2525252525253FReturnUrl%2525252525253D%252525252525252Futil%252525252525252Flogin.aspx%252525252525253FReturnUrl%252525252525253D%25252525252525252Futil%25252525252525252Flogin.aspx%25252525252525253FReturnUrl%25252525252525253D%2525252525252525252Futil%2525252525252525252Flogin.aspx%2525252525252525253FReturnUrl%2525252525252525253D%252525252525252525252Futil%252525252525252525252Flogin.aspx%252525252525252525253FReturnUrl%252525252525252525253D%25252525252525252525252Futil%25252525252525252525252Flogin.aspx%25252525252525252525253FReturnUrl%25252525252525252525253D%2525252525252525252525252Futil%2525252525252525252525252Flogin.aspx%2525252525252525252525253FReturnUrl%2525252525252525252525253D%252525252525252525252525252Futil%252525252525252525252525252Flogin.aspx%252525252525252525252525253FReturnUrl%252525252525252525252525253D%25252525252525252525252525252Futil%25252525252525252525252525252Flogin.aspx%25252525252525252525252525253FReturnUrl%25252525252525252525252525253D%2525252525252525252525252525252Futil%2525252525252525252525252525252Flogin.aspx%2525252525252525252525252525253FReturnUrl%2525252525252525252525252525253D%252525252525252525252525252525252Futil%252525252525252525252525252525252Flogin.aspx%252525252525252525252525252525253FReturnUrl%252525252525252525252525252525253D%25252525252525252525252525252525252Futil%25252525252525252525252525252525252Flogin.aspx%25252525252525252525252525252525253FReturnUrl%25252525252525252525252525252525253D%2525252525252525252525252525252525252Futil%2525252525252525252525252525252525252Flogin.aspx%2525252525252525252525252525252525253FReturnUrl%2525252525252525252525252525252525253D%
- For comparison If I installed EPiServer 9 Alloy-site with old EPiServer Visual Studio Template and it worked with windows authentication. I've compared web.config files between both sites but didn't find any significant difference.
#177781
Edited, Apr 19, 2017 13:23
Vote:
 

Solved the problem. Form-authentication seems to be hardcoded into EPiServer 10:s Alloy Templates. Just commented out lines below comment line "Use cookie authentication" in file StartUp.cs and got it working with windows-authentication.

#177791
Apr 19, 2017 15:13
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.