Solved

Forms Authentication Requests Are Not Directed to login Url Page

Posted on 2008-06-25
2
567 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 500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 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