I'm having a tough time implementing mixed-mode authentication (windows & forms based) for my application using IIS 7. Doing it in IIS6 is easy, but the process doesn't translate to 7/7.5 - and my research has led to me to conflicting answers, none of which
have yet worked. I could really use some help here.
I have redirect page called WindowsLogin.aspx, and a forms-based one called Login.aspx. I'm having difficulty enabling Windows authentication for just WindowsLogin.aspx. I read some instructions that say to make the following addition to web.config:
Solved it - you have to allow authentication changes in IIS for the application for the web.config commands to work. Here are the commands you need to run on the webserver:
C:\Windows\System32\inetsrv\appcmd.exe unlock config "Default Web Site\Your App" /section:anonymousAuthentication -commit:apphost
C:\Windows\System32\inetsrv\appcmd.exe unlock config "Default Web Site\Your App" /section:windowsAuthentication -commit:apphost
Marked as answer by Piornet on Jan 20, 2011 06:48 PM
Piornet
Member
54 Points
48 Posts
Mixed Mode Authentication with IIS7
Jan 20, 2011 05:24 PM|LINK
Hi!
I'm having a tough time implementing mixed-mode authentication (windows & forms based) for my application using IIS 7. Doing it in IIS6 is easy, but the process doesn't translate to 7/7.5 - and my research has led to me to conflicting answers, none of which have yet worked. I could really use some help here.
I have redirect page called WindowsLogin.aspx, and a forms-based one called Login.aspx. I'm having difficulty enabling Windows authentication for just WindowsLogin.aspx. I read some instructions that say to make the following addition to web.config:
Piornet
Member
54 Points
48 Posts
Re: Mixed Mode Authentication with IIS7
Jan 20, 2011 06:48 PM|LINK
Solved it - you have to allow authentication changes in IIS for the application for the web.config commands to work. Here are the commands you need to run on the webserver:
C:\Windows\System32\inetsrv\appcmd.exe unlock config "Default Web Site\Your App" /section:anonymousAuthentication -commit:apphost
C:\Windows\System32\inetsrv\appcmd.exe unlock config "Default Web Site\Your App" /section:windowsAuthentication -commit:apphost
alvinsreyes
Member
2 Points
1 Post
Re: Mixed Mode Authentication with IIS7
Apr 13, 2012 01:52 AM|LINK
thanks for the post. great help.
glaudsonsilv...
Member
2 Points
2 Posts
Re: Mixed Mode Authentication with IIS7
May 18, 2012 07:27 PM|LINK
Hi,
I'm with the same problem. I have tried a lot of suggestions, but I can't do Mixed authentication with IIS7.
Can you help me? What do you did for resolve this problem?