A first chance exception of type ‘System.Net.WebException’ occurred in System.Http.dll
A first chance exception of type ‘System.Net.WebException’ occurred in System.Http.dll
An exception of type ‘System.Net.WebException’ occurred in System.Http.dll but was not handled in user code

Additional information: connection failed

My php page returns “Yes” and it is working (entering url into web browser). The server is apache.

[quote]WSAECONNRESET10054
Connection reset by peer.
An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the SO_LINGER option on the remote socket). This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET.[/quote]

See if changing KeepAlive or Timeout on the request object makes any difference.