没有收到完整的json字符串

时间:2016-08-31 11:18:25

标签: json asp.net-mvc asp.net-web-api postman

我已经在MVC中编写了一个API - 一切正常,直到传递的JSON很长。

从其他网络项目调用时以及使用Postman

时失败了

所以我将以下内容添加到web.config。

<httpRuntime targetFramework="4.5.1" requestValidationMode="2.0" maxRequestLength="204800000" executionTimeout="7200" />

现在,当我通过Postman运行时 - 它每次都有效 - 无论我发送的长度如何。

但是......从我的网络项目调用时,它仍然失败 - 砍掉数据

1 个答案:

答案 0 :(得分:0)

Please check with the Json serializer you are using in your client application & request time out.