Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi,

Here i am going to publish my web application on IIS 7.0 . Here I want forms Authentication so that i can login using my credential (or validating user).

When i am going to publish my web application on IIS using Forms Authentication it gives error message like

HTTP Error 401.2 - Unauthorized
You are not authorized to view this page due to invalid authentication headers.


What I have tried:

This is my web.config code
<authentication mode="Forms">
  <forms defaultUrl="~/frmHome.aspx" loginUrl="~/frmLogin.aspx" slidingExpiration="true" timeout="2880"></forms>
    </authentication>


and in iis setting i did following
1. Forms Authebication mode enabled.
2. Set Default document
3. Allow Directory browsing
4. Inside Basic setting i chosen Default application pool.
5. Given Fill access rights to virtual directory.

Please Help me.
for above problem
Posted
Comments
Herman<T>.Instance 23-Oct-18 4:25am    
What authorisations have been setup in IIS for the webapplication?
SujataJK 23-Oct-18 4:26am    
Forms Authentication
Herman<T>.Instance 23-Oct-18 4:27am    
Forms Authentication is Enabled under authentication? Is that what you are telling me?
Herman<T>.Instance 23-Oct-18 4:28am    
Can Fiddler give you more details about:
'You are not authorized to view this page due to invalid authentication headers.'
SujataJK 23-Oct-18 4:36am    
in iis ,inside authorization rules section i allow all user and entry type is local

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900