(413)在ASP.Net Web Api OWIN自助主机服务中请求实体太大 [英] (413) Request Entity Too Large in ASP.Net Web Api OWIN self host service

查看:239
本文介绍了(413)在ASP.Net Web Api OWIN自助主机服务中请求实体太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!
$


我正在使用Owin.Hosting进行自主Asp.Net WebApi服务。当我尝试向此服务发送大请求(> 4MB)时,我收到错误:(413)请求实体太大。



在IIS主机中我可以使用web.config更改请求的最大大小,在自主机中我可以使用HttpSelfHostConfiguration来改变大小,但是如何在OWIN自主主机WebApi服务中执行此操作?



谢谢!



Hi!

I working on self-host Asp.Net WebApi service, which use Owin.Hosting. When I try to send big request to this service (>4MB), I get error: (413) Request Entity Too Large.

In IIS host I can use web.config to change max size of request, in self host I can use HttpSelfHostConfiguration to change size, but how I can do this in OWIN self host WebApi service?

Thanks!


推荐答案

您好
ASLEBEDEV,

与提到的标题一样,您的案例与ASP.Net Web Api更相关,请在以下论坛中重新发布此问题以获得更好的支持。

Like your title mentioned, your case more related to  ASP.Net Web Api, please repost this issue in the following forum for better support.

http://forums.asp.net /1246.aspx/1?Web+API

祝你好运,

Kristin


这篇关于(413)在ASP.Net Web Api OWIN自助主机服务中请求实体太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆