Server Error in '/' Application.

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at GetApiResult.GetDocumentMID(String strmanuid, String stGuid) in e:\officeapi.manupatra\ManupatraWebService\App_Code\GetApiResult.cs:line 1044
  --- End of inner exception stack trace ---

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ServiceModel.FaultException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at GetApiResult.GetDocumentMID(String strmanuid, String stGuid) in e:\officeapi.manupatra\ManupatraWebService\App_Code\GetApiResult.cs:line 1044
  --- End of inner exception stack trace ---

Source Error:


Line 166:        
Line 167:        public string GetDocumentMID(string strmanuid, string stGuid) {
Line 168:            return base.Channel.GetDocumentMID(strmanuid, stGuid);
Line 169:        }
Line 170:        

Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\b9586db7\d4ff59dc\App_WebReferences.pcu5a-cn.0.cs    Line: 168

Stack Trace:


[FaultException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at GetApiResult.GetDocumentMID(String strmanuid, String stGuid) in e:\officeapi.manupatra\ManupatraWebService\App_Code\GetApiResult.cs:line 1044
   --- End of inner exception stack trace ---]
   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +14508071
   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +403
   ManuDocPath.GetApiResultSoap.GetDocumentMID(String strmanuid, String stGuid) +0
   ManuDocPath.GetApiResultSoapClient.GetDocumentMID(String strmanuid, String stGuid) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\b9586db7\d4ff59dc\App_WebReferences.pcu5a-cn.0.cs:168
   Trans_ViewDoc.Page_Load(Object sender, EventArgs e) in d:\WeApps\Roundup\RoundupDaily\Trans\ViewDoc.aspx.cs:47
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0