Quantcast
Channel: Internet Explorer 8, 9, 10, 11 forum
Viewing all articles
Browse latest Browse all 10469

Sys.Services.AuthenticationService on IE 11

$
0
0

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. It is a javascript method that does an ajax style login. It calls the ASP.NETauthentication service and 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 called AuthService.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 the Sys.Services.AuthenticationService.login part it goes to a back-end web service and calls a WebMethod called login. 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 have authenticationService 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 the login 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 found some other posts online by people that had the same issue but not using Sys.Services.AuthenticationService. There seems to be a problem with Windows Authentication on this version of IE. The solutions I was advised to try were downloading fixes but they didn't work.

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.


Viewing all articles
Browse latest Browse all 10469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>