Wierd JSON result - Elfinder.NET initialization error

风流意气都作罢 提交于 2019-12-11 12:07:21

问题


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.


回答1:


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..



来源:https://stackoverflow.com/questions/19808986/wierd-json-result-elfinder-net-initialization-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!