I have been using Sys.Services.AuthenticationService for a couple of years on my website but since I installed Internet Explorer 11 it is giving me problems. I use it for logging in a user without the page refreshing. I used this code that I found as an example (I have pretty much the same code myself):http://msdn.microsoft.com/en-us/library/vstudio/bb398896%28v=vs.100%29.aspx
It is a very good way of logging in a user as it works in conjunction with the users that are in the ASP.NET membership tables. The above link does not show the web service but I am using one. I have a file calledAuthService.asmx which calls AuthService.cs in the App_Code folder. This contains all the methods that correspond to the javascript (login, log out etc.) When they are called in the javascript they get called in the C# also.
My site is a Visual Studio ASP.NET website and I have placed all the javascript code from that link in the site.master page. It takes the username and password values from the aspx page. Once it goes into theSys.Services.AuthenticationService.login part it goes to a back-end web service and calls a WebMethod calledlogin. When I set a breakpoint on this method, run my site on localhost and call the login on Firefox or Chrome, it jumps into the method and works perfectly, logging the user in everytime.
In Internet Explorer it does not jump into the method, it just goes as far as the javascript call Sys.Services.AuthenticationService.login. The usernames and passwords are correct and I haveauthenticationService enabled in the web.config file. It is only an issue with Internet Explorer 11 as it worked perfectly on older versions.
If I type the name of the web service into IE 11's address bar, it displays thelogin web method and I can actually enter the username and password and then it jumps into the method in Visual Studio. It just won't do it in the javascript and as I say, it is only in IE 11.
I know there have been issues with Ajax on IE 11 since it was released, this seems like another one. Has anyone had this issue before and resolved it?
Thank you for any replies.