Using two ALT.SMS.SmppClient objects : strange Exception !
Posted: Wed Apr 07, 2010 3:31 pm
Hello,
I've modified your demo WinForms app to bind two ALT.SMS.SmppClient (one for transmission, the other for reception) and everything works fine until I use it to automatically Submit a message when a particular Deliver shows up.
The exception is a System.Reflection.TargetParameterCountException which points the WinForms app Main() method, here is the StackTrace :
The two SmppClients are bound to the same machine, different ports.
I really have no idea of what's happening!
Anyone can help please?
Thank you
Pierre Segalen
I've modified your demo WinForms app to bind two ALT.SMS.SmppClient (one for transmission, the other for reception) and everything works fine until I use it to automatically Submit a message when a particular Deliver shows up.
The exception is a System.Reflection.TargetParameterCountException which points the WinForms app Main() method, here is the StackTrace :
Code: Select all
à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
à System.Delegate.DynamicInvokeImpl(Object[] args)
à System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
à System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
à System.Threading.ExecutionContext.runTryCode(Object userData)
à System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
à System.Windows.Forms.Control.InvokeMarshaledCallbacks()
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
à System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
à System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
à System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
à System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
à System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
à ALT.SMS.SmppClientDemo.Main() dans D:\\Pierre\\DocsNP6\\DigitalAfrique\\ALT.SMS.SmppClient\\SMPP Client\\SmppClientDemo.cs:ligne 862
à System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Threading.ThreadHelper.ThreadStart()
I really have no idea of what's happening!
Anyone can help please?
Thank you
Pierre Segalen