|
There was no endpoint listening at http://localhost:xxx/xxx.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ************** Exception Text **************
System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at http://localhost:xxx/xxx.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---
用WCF上传大文件IIS404.13错误
在IIS7.5上,如果通过WCF服务上传大文件(> 30MB),IIS服务器将会返回404.13错误,具体的错误信息如下:
HTTP Error 404.13 – Not Found
The request filtering module is configured to deny a request that exceeds the request content length.
解决方法是在web.config里把maxAllowedContentLength给设大些,默认最大智能上传28.6M的文件。
<requestLimits maxAllowedContentLength="2147483647" />
|
上一篇:WCF实现文件上传有返回值Demo下载下一篇:SQL中的锁、脏读、不可重复的读及虚读
|