Click here to Skip to main content
15,893,663 members
Home / Discussions / C#
   

C#

 
GeneralRe: Strange DLL Calls in C# - Help Pin
Nick Parker22-Sep-04 11:25
protectorNick Parker22-Sep-04 11:25 
GeneralRe: Strange DLL Calls in C# - Help Pin
leppie22-Sep-04 19:55
leppie22-Sep-04 19:55 
GeneralContext menu and textbox... Pin
m_els22-Sep-04 10:13
m_els22-Sep-04 10:13 
GeneralRe: Context menu and textbox... Pin
Nick Parker22-Sep-04 11:23
protectorNick Parker22-Sep-04 11:23 
GeneralRe: Context menu and textbox... Pin
m_els22-Sep-04 22:50
m_els22-Sep-04 22:50 
Generalembedding office functionality into application Pin
tdciDoug22-Sep-04 7:25
tdciDoug22-Sep-04 7:25 
GeneralRe: embedding office functionality into application Pin
Heath Stewart22-Sep-04 7:33
protectorHeath Stewart22-Sep-04 7:33 
GeneralTcpClient SockException - Can't Connect Pin
afinnell22-Sep-04 5:39
afinnell22-Sep-04 5:39 
I have a customer that is getting the following exception when the program attempts to make a simple connection:

Exception: System.Net.Sockets.SocketException
Message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Source: System
at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port)

This seems to me that the server isn't running anything on the specified port, however he swears he can telnet to the port on the command prompt.

Here is the exact code that causes this problem.

System.Net.Sockets.TcpClient testConnection = 
    new System.Net.Sockets.TcpClient ();
testConnection.Connect (smtpHost, smptPort);
testConnection.Close();

I believe he has entered his information incorrectly but he says it has just recently started happening and it worked before without any problems. Could XP SP2 be causing this problem? There is enhanced code that only allows a certain number of connections to be made but I thought it gave a policy violation error instead of the timeout error.

Has anyone experienced anything like this before?

Thanks.


-
Andrew T Finnell
GeneralRe: TcpClient SockException - Can't Connect Pin
Heath Stewart22-Sep-04 7:18
protectorHeath Stewart22-Sep-04 7:18 
GeneralRe: Threading Puzzles. Pin
Hugo Hallman22-Sep-04 3:49
Hugo Hallman22-Sep-04 3:49 
GeneralRe: Threading Puzzles. Pin
stan2822-Sep-04 4:44
stan2822-Sep-04 4:44 
GeneralRe: Threading Puzzles. Pin
stan2822-Sep-04 4:53
stan2822-Sep-04 4:53 
Generalsql Pin
cmarmr22-Sep-04 3:42
cmarmr22-Sep-04 3:42 
GeneralRe: sql Pin
exhaulted22-Sep-04 6:24
exhaulted22-Sep-04 6:24 
GeneralWeb Browser Control Pin
Asif Rehman22-Sep-04 3:09
Asif Rehman22-Sep-04 3:09 
GeneralRe: Web Browser Control Pin
Heath Stewart22-Sep-04 9:07
protectorHeath Stewart22-Sep-04 9:07 
Generalkeep popup completely visible Pin
ddelapasse22-Sep-04 2:12
ddelapasse22-Sep-04 2:12 
GeneralRe: keep popup completely visible Pin
Heath Stewart22-Sep-04 9:18
protectorHeath Stewart22-Sep-04 9:18 
GeneralRe: keep popup completely visible Pin
ddelapasse23-Sep-04 1:25
ddelapasse23-Sep-04 1:25 
GeneralUsing DataGrid With SQL in C# Pin
MarkMokris22-Sep-04 1:44
MarkMokris22-Sep-04 1:44 
GeneralRe: Using DataGrid With SQL in C# Pin
exhaulted22-Sep-04 1:52
exhaulted22-Sep-04 1:52 
GeneralRe: Using DataGrid With SQL in C# Pin
MarkMokris22-Sep-04 2:20
MarkMokris22-Sep-04 2:20 
GeneralRe: Using DataGrid With SQL in C# Pin
exhaulted22-Sep-04 3:04
exhaulted22-Sep-04 3:04 
GeneralScrollbar movement Notification: Pin
Sudhakar Pasupunuri22-Sep-04 0:45
Sudhakar Pasupunuri22-Sep-04 0:45 
GeneralRe: Scrollbar movement Notification: Pin
Heath Stewart22-Sep-04 9:38
protectorHeath Stewart22-Sep-04 9:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.