我試圖使用從第三方web服務的一個Web方法進入我的vb.net代碼中使用他們的.NET檢索信息API。錯誤在.NET:用盡157286400個字節允許內存大小(試圖分配10528769個字節)
當我嘗試
Dim records() As WEB_API.DBRecord
records = api.GetView(guid, viewid, dbid, offset, 10000)
我得到的錯誤從WebService(SOAP)說:
System.Web.Services.Protocols.SoapHeaderException: Allowed memory size of 157286400 bytes
exhausted (tried to allocate 10528769 bytes)
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at comp.WEB_API.XYZ.GetView(String db_guid, Int32 view_db, Int32 space_id, Int32 offset, Int32 count)
有什麼我需要從我的最終解決?你認爲是什麼原因。 讓我知道我可以如何解決這個問題。 謝謝。
爲10000的記錄量來獲取? –
我確實給出了最大限制爲10000.而我至少有5400條記錄被拔出。 – vmh