I have been using Backload through the jQuery file upload plugin for over a year now and it works fine with my old site using MVC 4 with Simple Membership and backload 1.9.3.0, but when I upgraded my site to MVC 5 and ASP.NET Identity and backload 1.9 .3.1, I started getting problems with backload, I keep getting:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)from the controller when called http://xxx/Backload/UploadHandler?objectContext=xx
.
When I traced the problem, I found that the problem arose during the authorization process, which then throws an exception:
Backload Error: 10030080 : Exception occured in Authorization Manager: Object reference not set to an instance of an object..
And then I get the above answer in the browser, and the files are not displayed in the JQuery download plugin since it received nothing but an internal server error from the controller.
I think the problem is that he is trying to get user roles using System.Web.Security.Roles. I tried to cancel the authorization process, but this does not seem to work, I tried the handler from example 12 in my documentation, but it never reaches the method handler_AuthorizeRequestStarted, because I think this exception will be thrown before this step.
Shame, if they do not solve this problem soon, I really liked their approach.
Hammi source
share