"The underlying connection was closed: An unexpected error occurred on a send."
I have tried running the service as a local service, network service, under my login, and under a service account, but nothing seems to work. Does anyone have any ideas on what may be causing this?
Here is the code in my Reference.vb - lines were added as I found possible other solutions in the forums. I am running VB .Net 3.5, developed in VS 2008 Team System. The PC it is running on is a windows 2003 server (virtualized - vmware)
Expand|Select|Wrap|Line Numbers
- Protected Overrides Function GetWebRequest(ByVal Uri As Uri) As System.Net.WebRequest
- Dim oWebrequest As System.Net.HttpWebRequest = MyBase.GetWebRequest(Uri)
- oWebrequest.KeepAlive = False
- oWebrequest.ConnectionGroupName = Guid.NewGuid.ToString
- oWebrequest.ProtocolVersion = System.Net.HttpVersion.Version10
- System.Net.ServicePointManager.Expect100Continue = False
- System.Net.ServicePointManager.MaxServicePointIdleTime = 120000
- Return (oWebrequest)
- End Function