作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 Windows Azure webrole (WCF) 网络服务。我有一种方法可以将文件上传到 Window Azure blob 存储。这很有效,但仅适用于小 (< 30 Kb) 文件。
<OperationContract()>
Function UploadFileV1(ByVal ApplicationSessionGuid As String,
ByVal UserSessionGuid As String,
ByVal FileContent As Byte(),
ByVal FileName As String,
ByVal FileDescription As String,
ByVal FileDisplayName As String,
ByVal IsPublic As Boolean) As DataSet
ByVal FileContent As Byte()
大于 30 Kb,然后当我调用网络服务时出现错误。
最佳答案
在 (Windows Azure) WCF webrole webservice 的 web.config 的 system.serviceModel 中,您可以添加 basicHTTPBinding。我犯的错误是尝试添加名称,但没有名称似乎是默认值。现在它就像一个魅力。希望其他人遇到这个问题并在这里找到他的答案。我花了四个小时。
<bindings>
<basicHttpBinding>
<binding maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" transferMode="Streamed" >
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
<security mode="None">
</security>
</binding>
</basicHttpBinding>
</bindings>
关于wcf - Azure WCF Webole 错误 : The remote server returned an unexpected response: (413) Request Entity Too Large,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14755529/
我有一个 Windows Azure webrole (WCF) 网络服务。我有一种方法可以将文件上传到 Window Azure blob 存储。这很有效,但仅适用于小 ( Function Upl
我是一名优秀的程序员,十分优秀!