Question

I'm using ElFinder.NET connector in my MVC applications. In one application everything works fine, but the other application can't initialize Elfinder.

The code used to initialize Elfinder is the same in both applications. The problem is probably in Connector.Process(this.HttpContext.Request) call.

In the application, where ElFinder is working, Connector.Process returns JSON result with correct data, the other application returns a wierd result.

I can see in the browser, that the request was processed, but the response body contains string System.Web.Mvc.JsonDataContractResult instead of JSON data. If I step through the code in Visual Studio, I see that Connector.Process return a JsonDataContractResult but it's empty.

enter image description here

Was it helpful?

Solution

Well then :)

Possible situation is; outdated Json.Net(Newtonsotf.Json) package version. If you have an older version of this library please simply replace them with the ones in elfinder's package as i say on my comment..

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top