Backload 1.9.3.1 file upload handler not working with MVC 5 and ASP.NET identifier

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.

+3
source share
1 answer

I got it to work through the indication in the section of the appSettings web.configtwo following entries:

<add key="autoFormsAuthentication" value="false" />
<add key="enableSimpleMembership" value="false" />

After that, everything worked the same way as before. In fairness, I believe that these problems are associated with the identification of ASP.Net, and not with the Backback server.

+4
source

All Articles