Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Forms Authentication Requests Are Not Directed to login Url Page

Posted on 2008-06-25
2
Medium Priority
?
574 Views
Last Modified: 2013-11-07
Alright experts, I dont know why this is not working. Its 10 after 1am and I need some help. I am implementing forms authentication. I have specified the loginURL, authentication cookie name and path. I however cannot get my pages protected. Somehow the redirection to the login page would not work. I just dont know help me figure this out.

The web.config entry is below
  <add name="AspNetSqlMembershipProvider"
               type="System.Web.Security.SqlMembershipProvider"
               connectionStringName="connstring"
               enablePasswordRetrieval="false"
               enablePasswordReset="true"
               requiresQuestionAndAnswer="false"
               applicationName="/"
               requiresUniqueEmail="false"
               passwordFormat="Hashed"
               maxInvalidPasswordAttempts="5"
               minRequiredPasswordLength="1"
               minRequiredNonalphanumericCharacters="0"
               passwordAttemptWindow="10"
               passwordStrengthRegularExpression="" />
      </providers>
    </membership>
    <authentication mode="Forms">
      <forms name=".VENDORAUTH" loginUrl="Login.aspx" path="/"  timeout="30"  protection="All"  >
       
      </forms>
    </authentication>
    <authorization>
      <allow users="?"/>
    </authorization>
0
Comment
Question by:trwd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 6

Accepted Solution

by:
avnish_tanna earned 2000 total points
ID: 21872225
You need to have deny users="?" in web.config file.
<authorization>
            <deny users="?" />
</authorization>
0
 
LVL 6

Expert Comment

by:avnish_tanna
ID: 21906258
trwd - were you able to resolve it using above change?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question