English 中文(简体)
WCF - 400 Bad request - 2dayconfiguating
原标题:WCF - 400 Bad request - 2 Days configuring
  • 时间:2012-01-12 10:31:20
  •  标签:
  • asp.net
  • wcf

当我寄送产品时,我会试图解决我的问题(包括一幅双程照片)。 如果我寄发一份含有大约14千卡的照片的产品,那么,如果我把规模增加到17千卡,我就会收到错误的信息:

“远程服务器退回了意外反应:(400) Bad Request。

因为它使用较小的图片。 我认为,这与我的组合是错误的。

Client (winform) app.config: http://www.copypastecode.com/157335/

Server web.config: http://www.copypastecode.com/157339/

我试图在没有任何进展的情况下将各种价值(最大程度、最大程度获得的MessageSize.)提高至高米?

问题回答

如果你寄出阵列,你应检查

最大程度

setting as you most probably hit this limit. What is the length of your array when with 17kb file? But in general, the best way to upload download files are stream upload download endpoints

您不妨考虑在您的服务要素中增加数据用户要素,以界定最高指标。

<serviceBehaviors>
    <behavior name="">
        <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
    </behavior>
 </serviceBehaviors>

还试图在您的服务上添加Tracing,并在请求失败的确切原因上看到追踪记录。

If your total request length is exceeding 4MB then make sure you have the below:

<system.web>
    <httpRuntime maxRequestLength="2147483647"/>
</system.web>




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签