3

I've seen similar issues in some posts but none of the answers have helped yet. My MVC app has a few AJAX/JSON response methods in one controller, and the calls get to destination but it doesn't work in IE or Chrome, and in mozilla it does, but Firebug returns a very strange set of 3 attempts (all return 401 error) but the last one does actually work!

My App has windows authentication, how can I extend this to my Ajax methods? the rest of the app works fine. I've tried bypassing the 401 by returning 200 Status from Global.asax (Application_EndRequest) but continues to do the same. Basically all of my Ajax methods have the same problem.

Here's an image from my firebug console.

4
  • Did you tried this? stackoverflow.com/questions/1002179/… Commented Feb 15, 2011 at 14:37
  • I'll give it a try, but really... there's no actual workaround for this? I have another method that isn't even a JsonResult, it just receives POST variables and inserts them into the DB. That one doesn't even work. I get the three 401's in the firebug, but all red (error, no response). Commented Feb 15, 2011 at 14:55
  • 401 unauthorized means that access to the URL resource requires user authentication.... read more hear... sorry can't help you more... checkupdown.com/status/E401.html Commented Feb 15, 2011 at 15:00
  • yep but this only happens with ajax calls, the rest of the MVC calls between View and Controller works great... Commented Feb 15, 2011 at 15:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.