I'm trying to use a script task to set the username/password of a httpConnection connection, but I can't figure out how to do this.
Current attempt:
httpClient.Properties["ServerUserName"].SetValue(httpClient.Properties["ServerUserName"], "someJunk");
This results in an InvalidCastException (Even though said property is a string).
What am I doing wrong here?