Error in SMPP.PDU.BindResp System.IndexOutOfRangeException

.NET library for SMPP protocol
Locked
TSBPM
Posts: 2
Joined: Thu Sep 05, 2013 2:03 pm

Error in SMPP.PDU.BindResp System.IndexOutOfRangeException

Post by TSBPM » Thu Sep 05, 2013 2:21 pm

Hello!

We are use your Dll and getting errors:

Code: Select all

System.IndexOutOfRangeException occurred
  HResult=-2146233080
  Message=Index was outside the bounds of the array.
  Source=Inetlab.SMPP
  StackTrace:
       at utdy1bh0bC9HjfEulK.cXyIKp5yVi0vuDJZ6B.PZjXqv0afC(Int32& )
  InnerException:

Call stack из студии:
>          Inetlab.SMPP.dll!utdy1bh0bC9HjfEulK.cXyIKp5yVi0vuDJZ6B.PZjXqv0afC() + 0xcd bytes           
           Inetlab.SMPP.dll!Inetlab.SMPP.PDU.BindResp.NWMaIAfL4u() + 0x1fe bytes        
           Inetlab.SMPP.dll!Inetlab.SMPP.Common.SmppClientBase.ParseReceivedData(System.IO.Stream stream, Inetlab.SMPP.SmppPduAction action) + 0x81a bytes 
           Inetlab.SMPP.dll!Inetlab.SMPP.Common.SmppClientBase.wepM6Kx6fJ() + 0x4cc bytes    
           System.dll!System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) + 0x65 bytes   
           System.dll!System.Net.ContextAwareResult.CompleteCallback(object state) + 0x7 bytes      
           mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) + 0xa7 bytes    
           mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) + 0x16 bytes        
           mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x41 bytes         
           System.dll!System.Net.ContextAwareResult.Complete(System.IntPtr userToken) + 0x83 bytes         
           System.dll!System.Net.LazyAsyncResult.ProtectedInvokeCallback(object result, System.IntPtr userToken) + 0xa6 bytes    
           System.dll!System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(uint errorCode, uint numBytes, System.Threading.NativeOverlapped* nativeOverlapped) + 0x98 bytes     
           mscorlib.dll!System.Threading._IOCompletionCallback.PerformIOCompletionCallback(uint errorCode, uint numBytes, System.Threading.NativeOverlapped* pOVERLAP) + 0x6e bytes            
           [Native to Managed Transition]           
           [Appdomain Transition]           
           [Native to Managed Transition]
TSBPM
Posts: 2
Joined: Thu Sep 05, 2013 2:03 pm

Re: Error in SMPP.PDU.BindResp System.IndexOutOfRangeExcepti

Post by TSBPM » Thu Sep 05, 2013 2:25 pm

This log from your demo client:

Code: Select all

17:10:53: INFO :  1: (SmppClientDemo) SmppClient connected
17:10:53: INFO :  1: (SmppClientDemo) Binding SmppClient for SystemId: *****
17:10:53: DEBUG: 17: (SmppClient) PDU has been sent: BindTransceiver, Length: 49, Status: ESME_ROK, Sequence: 3
17:10:53: TRACE: 17: (SmppClient) Sent data:000000350000000900000000000000036369747275735f62756c6b004d39656839436e78005472616e736d69747465720034000000
17:10:53: TRACE:  5: (SmppClient) Received data:00000010800000090000000d00000003
17:10:53: DEBUG: 14: (SmppClient) PDU Received: BindTransceiverResp, Length: 16, Status: ESME_RBINDFAIL, Sequence: 3
17:10:53: INFO :  1: (SmppClientDemo) Bad status returned during Bind : BindTransceiverResp with status ESME_RBINDFAIL
17:10:53: DEBUG:  1: (SmppClient) Client '********' disconnected
17:10:53: INFO :  1: (SmppClientDemo) SmppClient disconnected
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Re: Error in SMPP.PDU.BindResp System.IndexOutOfRangeExcepti

Post by alt » Fri Sep 06, 2013 10:56 am

Here bind_transeiver_resp has no obligatory field system_id.
correct response packet should be:
00000011800000090000000d0000000300
Locked