我做了一个winform的上传组件,和一个webservice 服务,通过webservice上传文件到oracle数据中,上传时以文件夹为单位,数据库中有4张表,前三张表存放文件的属性信息,第四张存放文件实体信息。当我上传文件比较多的时候就会报错:The request was aborted: The operation has timed out.System.Net.WebException: The request was aborted: The operation has timed out.
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Sand.AXHZGT.WSHZGT.FileServ.AppendDocumentContent(Int32 contentID, Byte[] buffer, Int32 length, Int64 offset)---注:AppendDocumentContent()这个方法是向第四张表里添加文件实体信息
at Sand.AXHZGT.FileUpload.UploadSinglProject(String classPath, String uploader, Boolean isSingle)
Unable to connect to the remote serverSystem.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException:
由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
不知道我表达的清楚不,希望各位哥哥姐姐帮帮忙,弟弟我感激不尽现在我还在试用期,帮帮忙哈!!!!
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Sand.AXHZGT.WSHZGT.FileServ.AppendDocumentContent(Int32 contentID, Byte[] buffer, Int32 length, Int64 offset)---注:AppendDocumentContent()这个方法是向第四张表里添加文件实体信息
at Sand.AXHZGT.FileUpload.UploadSinglProject(String classPath, String uploader, Boolean isSingle)
Unable to connect to the remote serverSystem.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException:
由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
不知道我表达的清楚不,希望各位哥哥姐姐帮帮忙,弟弟我感激不尽现在我还在试用期,帮帮忙哈!!!!
文件多了会导致SOCK堵塞的.
强烈建议不要存数据....
<httpRuntime executionTimeout="300" maxRequestLength="40960" useFullyQualifiedRedirectUrl="false"/>
可上传的时候还有异常:
异常:
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
在一个服务上发送是同步会堵塞.