TeamCity Agent Missing DotNetFramework4.0_x86, but not?

我的梦境 提交于 2019-12-08 21:38:36

问题


I've been trying to move our TeamCity install from an old server onto a new Windows Server 2008 R2 server, I've finally got everything configured. However the build agent is saying that DotNetFramework4.0_x86 isn't available on the build agent, but .NET 4.0 framework is installed.

Has anyone come across this issue, is it a Windows Server 2008 R2 thing?


回答1:


Your build agent seems to failed to autoupgrade. Do the following:

  • stop agent
  • kill all java processes
  • remove agent/system, agent/plugins, agent/tools folders
  • start agent service
  • wait for agent to update. This could take 5-10 minutes and build agent service may be shown as stopped.
  • check agent/logs/update.log for errors

Please attach agent/logs folder to teamcity-feedback@jetbrains.com

Make sure build agent running windows service user account has rights to start/stop agent service and update all files under build agent installation directory




回答2:


Also check Programs and Features list in Control Panel that both Microsoft .NET Framework 4 Client Profile and Microsoft .NET Framework 4 Extended packages are installed - MSBuild and other required development tools are included in Extended package.




回答3:


I had same problem and installed this version of .NET framework 4. by installing this it solve my problem. You also give it a shot.

http://www.microsoft.com/download/en/details.aspx?id=17718




回答4:


I tried the method in the accepted answer but unfortunately it did not work.

What worked was that I disabled all build steps in my configuration and then turned them back on one at a time till I found one that caused the build agent requirements to fail with the .NET framework 4.0 thing.

Turns out mine was a Nuget Installer step. I had Nuget 2.7.x and according to this page: https://confluence.jetbrains.com/display/TCD9/NuGet+Installer Nuget 2.5x+ requires .NET 4 and Nuget 2.8.6+ requires .NET 4.5+

Once I updated to the latest Nuget command line (Team City admin has a page for this), my build took off.



来源:https://stackoverflow.com/questions/7330858/teamcity-agent-missing-dotnetframework4-0-x86-but-not

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!