This question is locked. New answers and comments are not allowed.
My MVC app requires the user to login, and I am using System.Web.MVC.Authorise attribute to control this.
In other words a security exception occurs if the user tries to access the Action when not logged in.
This appears to be an issue with the MVC grid and ajax binding, as I get a JSON error once the timeout of your session occurs.
To repo:
- secure an action your Ajax binding grid uses, using [Authorise]
- wait for timeout of your asp.net session
- click "edit" (for example), fill in the edit form, click Save button, and instead of getting logged out, as would happen on a normal browse to an Action/View, a pop up is displayed saying:
"Error!The requested URL did not return JSON"
Any ideas?
In other words a security exception occurs if the user tries to access the Action when not logged in.
This appears to be an issue with the MVC grid and ajax binding, as I get a JSON error once the timeout of your session occurs.
To repo:
- secure an action your Ajax binding grid uses, using [Authorise]
- wait for timeout of your asp.net session
- click "edit" (for example), fill in the edit form, click Save button, and instead of getting logged out, as would happen on a normal browse to an Action/View, a pop up is displayed saying:
"Error!The requested URL did not return JSON"
Any ideas?