Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8548639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:32:30+00:00 2026-06-11T13:32:30+00:00

I am trying to get the build working on the build agent in TFS.

  • 0

I am trying to get the build working on the build agent in TFS. I can successfully build the solution in Visual studio 2012 RC and other developers can do the same in theirs. I created the build definition for the debug configuration and queued the build in TFS server. I get the following error logs.

Error:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1046): The command "IF EXIST ../batch (
    cd ../batch
) ELSE (
    cd ../../Sources/Solution_Name/Project_Name/batch
)
createDepsFile Project_Name
" exited with code 9009.

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1561): Could not resolve this reference. Could not locate the assembly "System.Web.Optimization". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1561): Could not resolve this reference. Could not locate the assembly "System.Web.Providers". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
Error  Global.asax.cs (16): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

I checked the reference added to the projects. I cannot find those assemblies. After looking all over the posts, I found good suggestions like adding those assemblies to the solution using NuGet and then check in the solution in TFS. Missing reference are only “warnings” not error.I still cannot find all the assemblies in the Nuget I am looking for. Some posts referred that the project might be referring to .Net 4.5 instead of .Net 4.0 as installed in the build machine. I do not want to change the solution until I know exactly the problem is. I am scattered on this problem.

At this point I do not think it has something to do with the Build Definition. And Code 9009 is not helping either. I may be wrong. Any suggestions guys need help on this one.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:32:31+00:00Added an answer on June 11, 2026 at 1:32 pm

    Thanks for the response guys. I found the problem. Some of the .dll were not on the right path. I just moved the .dll to one of the place where MSbuild was looking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a solution I'm trying to get to build on TFS. I want
I'm currently trying to get g++ working, and looking at http://gcc.gnu.org/install/build.html , I can't
I am trying to get a simple project working with FFTW in Visual Studio
I'm trying to get my commit-build.bat to execute other .BAT files as part of
I've been trying to get this re-build command working for a Windows 8 Project
I'm trying to get our build scripts (which use MSBuild) working correctly on Vista
I'm in the middle of trying to get mercurial working on a windows build
I'm trying to get Cobertura working for my project's Ant build, and all I
I am trying to get a particular build from TFS but it is frustratingly
I am trying to get the propel-gen reverse command working, but just can't seem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.