using a Webrequest within a script task to consume a Rest Service
I get the following error
A connection that was expected to be kept alive was closed by the server
I'm calling the rest service within a For Each Loop container. It works the first time but not any subsequent executions.
searching stack overflow I've come across the following settings tha have helped others but not me
ServicePointManager.Expect100Continue = false;
ServicePointManager.DefaultConnectionLimit = 100;
ServicePointManager.MaxServicePointIdleTime = 5000;
I'm thinking it's because the KeepAlive property is set to true but I can't see a way to change it and it isn't a property that can be changed