user458729
user458729

Reputation:

TeamCity Agent Missing DotNetFramework4.0_x86, but not?

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?

Upvotes: 6

Views: 3297

Answers (4)

c0bra
c0bra

Reputation: 3012

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.

Upvotes: 0

Alok C
Alok C

Reputation: 2857

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

Upvotes: 0

mkuzmin
mkuzmin

Reputation: 775

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.

Upvotes: 0

Eugene Petrenko
Eugene Petrenko

Reputation: 4982

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 [email protected]

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

Upvotes: 10

Related Questions