Membership.ValidateUser methods works on development server both(iis express and cassini). But on my IIS (its publishing as an application on my development machine) It always return false.
Even user is approved,not locked and username and password are correct. There is no trace error. ?
http request 1: davutg-pc:6423/BpmService/Login?userName=abc&password=0035
result 1: < boolean >true< /boolean >
http request 2: davutg-pc/BPM/BpmService/Login?userName=abc&password=0035
result 2 :< boolean > false < /boolean >
Here are my settings
<roleManager enabled="true" defaultProvider="MySQLRoleProvider"/>
<machineKey validationKey="E8B40EEA5A8EFC6F...key" decryptionKey="385..." validation="SHA1" />
<membership defaultProvider="MySQLMembershipProvider" hashAlgorithmType="SHA1">
<providers>
<remove name="MySQLMembershipProvider" />
<add type="MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=6.5.5.0, Culture=neutral,
PublicKeyToken=c5687fc88969c44d"
name="MySQLMembershipProvider"
connectionStringName="LocalMySqlServer"
minRequiredPasswordLength="3"
minRequiredNonalphanumericCharacters="0"
requiresUniqueEmail="false"
requiresQuestionAndAnswer="false"
passwordFormat="Encrypted"/>
I compared machine.configs are the same Framework 64 and Framework.
It works on development server but on IIS always return false. I can query different services with IIS and no such problem.
IN ADDITION: When I enter wrong password "FailedPasswordAttemptCount" increased for development server. But it doesn't change for IIS. What's going wrong with IIS. I just call Membership.ValidateUser(user,pass)
Any suggestion will be appreciated !