【发布时间】:2011-09-17 01:17:42
【问题描述】:
我正在为我的服务使用 wshttpbinding
<wsHttpBinding>
<binding name="wsHttpBinding_Windows" maxBufferPoolSize="9223372036854775807" maxReceivedMessageSize="2147483647">
<readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxStringContentLength="2147483647" maxNameTableCharCount="2147483647"/>
<security mode="Message">
<message clientCredentialType="Windows"/>
</security>
</binding>
</wsHttpBinding>
<behavior name="ServiceBehavior">
<dataContractSerializer maxItemsInObjectGraph="6553600"/>
<serviceThrottling maxConcurrentCalls="2147483647" maxConcurrentInstances="2147483647" maxConcurrentSessions="2147483647"/>
</behavior>
当我尝试上传 15Mb 的文件时,它会抛出下面的 EndPointNotFoundException:
异常消息:
There was no endpoint listening at "MY SERVICE URL" that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
例外:
The remote server returned an error: (404) Not Found.
【问题讨论】:
-
上传较小的文件是否有效?
-
在
<endpoint>部分验证端点的IP地址和端口 -
是的,它上传的尺寸较小。还有一件事我正在使用异步调用(如果重要的话)。
标签: c# wcf large-files payload