Earlier today I had no problem, but this afternoon something (and I've no clue what) changed in my Forms Based Authentication setup in SharePoint 2013, so that while I can login to my site using IE10, I can no longer do so with Firefox or Chrome.

Essentially I found, while debugging my custom login script in Visual Studio, that the following line of code returns true when using IE10 (both locally on the server and remotely from my desktop), but when I use other browsers the line returns false. I can't explain why

if (Membership.ValidateUser(formUserName, formPassword))

I've checked the values of formUserName and formPassword and they match between using IE and FF, which makes this even more bizzare. I've also cleared everything from within FF (cookies, cache, etc.) and still no joy.

  • Have you validated that the same information is being passed in for the formUserName and formPassword values between browsers? Maybe add a breakpoint and debug to see what the values are with the different browsers. – John Chapman Dec 12 '13 at 1:15
  • Did u changed anything in your web.config file ? – Pushpendra Dec 12 '13 at 5:28
  • @JohnChapman I did validate that (see last sentence of my question). Because those values are the same, it makes this that much more strange and difficult to resolve. – QMKevin Dec 12 '13 at 12:44
  • @Pushpendra I didn't change anything, but I suppose I should check incase something was changed without my knowledge. I'll get back to you – QMKevin Dec 12 '13 at 12:44
  • @Pushpendra nope, nothing hsa changed in the web.config. Any other ideas? – QMKevin Dec 13 '13 at 15:47

I managed to find the answer - SharePoint 2013 has two 'hives', 14 & 15. I'm not sure how, but my login.aspx file in the /14/LAYOUTS folder was not the same as the (correct) /15/LAYOUTS/login.aspx, and this caused the issues. Once both files were teh same, the browser type didn't matter, and I can login.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.