Email Validator: Socket Exception

I am trying to use the EmailValidator class to verify user-entered email addresses.

Frequently, when I execute the following code, I get a SocketException: “A connect request was made on an already connected socket.” The source of the exception is Aspose.Network.

public bool VerifyEmail(string address)
{
ValidationResult Result;

new EmailValidator().Validate(
address,
out Result);

return Result.ReturnCode == ValidationResponseCode.ValidationSuccess;
}

I might get this exception on the first attempt to verify an address or on the tenth; it is not consistent. The calling code is essentially attempting to verify the same email address 10 times (as a test), like:

for(int i=0; i<10; i++)
VerifyEmail("petitomp@gmail.com");

Thoughts?


Hello,

We are looking this issue. I will get back to you soon.

Thanks,

Any further information on this issue? It has been nearly 2 months… fortunately, I haven’t needed this functionality in production yet.

-Mike