How to resolve this unmet agent requirement: "DotNetFramework4.0_x86 exists"?

I just installed TeamCity 6.1.5 on a 64-bit Windows 2008 R2 box.  I am trying to build a simple Visual Studio 2010 solution (with either the Visual Studio 2010 or msbuild runners), but I can't seem to get a compatible build agent.  I keep seeing that my agent is incompatible because of an unmet "DotNetFramework4.0_x86" exists requirement.  I made sure I'd installed the full dotnet 4 framework (dotNetFx40_Full_setup).  I also saw this thread on Stack Overflow, which implied that the Windows SDK was necessary, so I also installed that.  Still, TeamCity keeps giving me this incompatibility notice.  How can I solve this?

thanks,
Chris

6 comments
Comment actions Permalink

Most probably .NET Framework is fine, but that's an issue within TeamCity build agent.
Please do the folowing

  1. stop the agent service
  2. delete folders
    \buildAgent\plugins\
    \buildAgent\system\
    \buildAgent\tools\
  3. start the agent service
  4. wait for several minutes until the agent downloads and installs its components. The agent service is stopped and restarted anutomatically during the process. Do not start it manually for second time.


Thanks
Michael

Message was edited by: Michael Kuzmin

0
Comment actions Permalink

Thanks for the reply.  I have attached the teamcity-agent.log file, but I do not see any upgrade.log file on my machine. This was a fresh TeamCity install, so does it make sense that there's no upgrade file?

I also stopped the agent service and deleted the plugins and tools folders. There was no update folder.  I restarted the agent service and saw that the plugins and tools folders got immediately recreated.  

I waited about 5 minutes and went into the TeamCity web app and clicked on the "Agents" tab.  I see my one agent in the list.  I click on it and see that it's connected and enabled.  Then I click on the "compatible configurations" tab.  In that tab, I see that I have an incompatible configuration.  MSBuild is an incompatible runner, and its unmet requirements are still "DotNetFramework4.0_x86 exists."


thanks,
chris



Attachment(s):
teamcity-agent.log.zip
0
Comment actions Permalink

Also, I do believe that the dotnet framework is actually fine, since I have an ASP.NET app built against the 4.0 version of the framework running successfully on that same machine.

0
Comment actions Permalink

Guys,

Has this been resolved? I am having the exact same issue.

Thanks,

MK

0
Comment actions Permalink

Hi Marios

I've posted recovery instructions above.

Message was edited by: Michael Kuzmin

0
Comment actions Permalink

I realize that this is an old post but since I ran into the same problem, I figured the problem still exists.  I tried quire a few solutions and what worked for me was to change the service account identity to a user that has higher permissions in the domain.  Although the service account was able to connect to TFS, it wasn't able to write to the folders under TeamCity installation path.  There was no indication of thsi problem in any of the logs but it solved my problem.

I hope this posts helps someone else.
Thanks,
Emre

0

Please sign in to leave a comment.