Can I suppress "authentication required" popup on an asp.net webservice call?
I'm using JQuery to call an asp.net webservice that is set in web.config to only allow logged in users access.
This works fine. When run locally from Web Developer Express, if I logout and try call the webservice I get a 401 message returned which I then use to redirect the user to the login page. However when run on the live server I'm getting an "authentication required" popup box asking for a username and开发者_如何学C password.
Why is this? Is there any way I can stop this?
And also, when I do enter the correct username and password, the box just comes up again.
Any help would be very much appreciated!
In production you would just need to disable IIS authentication for the specific pages in the IIS manager
精彩评论