> I found the CloseConnectionGroup method, too. But it needs an argument (name
> of the con group). So it would be intresting if I could/should use this
> method and where I can get the name of the group. Do you have further
> information about this method?
Sorry, no. I was just poking around the docs. I still think your code
is doing things correctly and I can't imagine why a port is being left
open.
Does this happen only when you're running in the debugger? What if you
run it outside the debugger? What happens if you run it in Release vs.
Debug mode?

Signature
Patrick Steele (patrick@mvps.org)
http://weblogs.asp.net/psteele
Torsten - 07 Sep 2007 06:26 GMT
Thanks for your help, Patrick.
I tested without the debugger - but I tried release and debug code. There is
no Visual Studio installed on the machines. Do you think I should test it
from VS? This is a little bit tricky, because my laptop is not part of this
domain.
My idea with the open port comes from the behavior of the smtp server.
Telnet to port 25 should work always afaik. But after the exception of my
program, telnet is also refused by the server till the next reboot.
I found another thing - the virus scanner. On the machines run Symantec anti
virus corp ed. There is a smtp scanner integrated, too. Is it possible that
the problem is not really program<->smtp-server, but
program<->antivirus<->smtp-server? Any suggestions?
> > I found the CloseConnectionGroup method, too. But it needs an argument (name
> > of the con group). So it would be intresting if I could/should use this
[quoted text clipped - 8 lines]
> run it outside the debugger? What happens if you run it in Release vs.
> Debug mode?
Patrick Steele - 09 Sep 2007 15:44 GMT
> I found another thing - the virus scanner. On the machines run Symantec anti
> virus corp ed. There is a smtp scanner integrated, too. Is it possible that
> the problem is not really program<->smtp-server, but
> program<->antivirus<->smtp-server? Any suggestions?
It's definitely a possibility. I would disable the SMTP scanner and see
what happens.

Signature
Patrick Steele (patrick@mvps.org)
http://weblogs.asp.net/psteele