Parameter Count Exception
Hi
I have designed a Server & Client (both in C#).
On both ends I am using Socket.Send(byte[] buffer); API to send data
My Server & Client have same Wrapper to this API. The Server works well but Client Crashes every time Send() API executes.
The Exception is TargetParameterCountException, and Message is Parameter count Mismatch
I used this One Argument Overload......as well as tried the other overload Send(byte[] buffer, SocketFlags.None)
But Problem persists....
My Wrapper is very simple
Public void SendMessage(String msg)
{
if(ClientSocket!=null)
{
if(ClientSocket.Connected)
{
ClientSocket.Send(Encoding.ASCII.GetBytes(msg));
}
}
}
Admin........and Anyone.......Can u Help
|