Error: "The underlying connection was closed: A connection that was expected to be kept alive was closed by the server."
As it turned out the mainframe was not setup to keep connections alive. Due to limitations with the mainframe, changing this functionality was not an option. So a simple partial class handled this automatically.
namespace <webservicenamespace> { public partial class <webserviceproxy> { protected override System.Net.WebRequest GetWebRequest(Uri uri) { System.Net.HttpWebRequest webRequest = base.GetWebRequest(uri); webRequest.KeepAlive = false; return webRequest; } } }
No comments:
Post a Comment