To enable debug logging for investigating process launch issues for .Net-related runners enable debugging as described below. The detailed logging will then be printed into build log for the following builds.
Open the <agent home>/plugins/dotnetplugin/bin folder.
Make a backup copy of teamcity-log4net.xml
Replace teamcity-log4net.xml with the content of teamcity-log4net-debug.xml
note
After a debug log is created, please do not forget to roll back the change. The change in teamcity-log4net.xml will be removed on build agent autoupgrade.
Alternative approach that might also work: set 'teamcity.agent.dotnet.debug' Configuring Build Parameters to 'true' in a build configuration or on agent.