Fixing a Jenkins 1.5 Slave on Windows 2016

Jenkins is one funny butler.

When you configure a Jenkins 1.5x slave on a Windows 2016 machine according to the instructions on wiki.jenkins-ci.org you will probably get a warning that the .Net 2.0 is not available. This is reported as issue 21484 and the fix is to upgrade, which sometimes can be a problem.

If you can't upgrade to the latest version for whatever reason, you can easily fix the .Net problem by changing the jenkins-slave.exe.config file from:

[sourcecode language="xml" gutter="false"] [/sourcecode]

To:

[sourcecode language="xml" gutter="false"]

[/sourcecode]

Hope this works for you. Cheers!