Jenkins.NET
Jenkins.NET copied to clipboard
System.Net.WebException: The remote server returned an error: (411) Length Required
When using this library in a .NET Framework 4.7.2 project, the following exception occurs. Same code in .NET 8.0 works fine.
Unhandled Exception: JenkinsNET.Exceptions.JenkinsJobBuildException: Failed to build Jenkins Job '...'! ---> System.Net.WebException: The remote server returned an error: (411) Length Required. at System.Net.HttpWebRequest.GetResponse() at JenkinsNET.Internal.JenkinsHttpCommand.Run() at JenkinsNET.JenkinsClientJobs.Build(String jobName)