Unable to build MVC 4.5 in Teamcity

I recently setup a new TeamCity builld server in AWS.
I wanted to test building an ASP.NET MVC website.
I used VS 2013 and create ASP.NET MVC 4.5 website and built it locally.It was built successfully.
On the build server I have installed msbuild tools version 12 and 14.
I copied the targets to the build server.

My build fails on team city with this error:

  • App_Start\BundleConfig.cs(2, 18): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
  • Global.asax.cs(6, 18): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
  • App_Start\BundleConfig.cs(9, 44): error CS0246: The type or namespace name 'BundleCollection' could not be found (are you missing a using directive or an assembly reference?)
  • App_Start\Startup.Auth.cs(15, 35): error CS0246: The type or namespace name 'IAppBuilder' could not be found (are you missing a using directive or an assembly reference?)
  • Startup.cs(9, 35): error CS0246: The type or namespace name 'IAppBuilder' could not be found (are you missing a using directive or an assembly reference?)



build agent is running on the same server.  It is running under an account that belongs to "administrators" group.
I have read every message, blog post, teamcity documentation to resolve this issue but I cannot get past it.

I have changed the copy local to true.
I have updated nuget references
First step in the build does restore nuget packages.
I have manually tried to build the solution manually on the build server.


Let me know if you have any suggestions for me.


Thanks

Raj


Here are the detailed logs

Download full build log (~49.13 KB) | .zip
Tree view | Tail
Repeat block names View:                          Errors                          Important messages                          All messages                      Verbose      
[22:34:21]Collecting changes in 1 VCS root
[22:34:21][Collecting changes in 1 VCS root] VCS Root details
[22:34:21][VCS Root details] "https://polarispix.visualstudio.com/DefaultCollection/_git/testvso#refs/heads/master"; {instance id=3, parent internal id=1, parent id=Testvso_HttpsPolarispixVisualstudioComDefaultCollectionGitTestvsoRefsHeadsMaster, description: "https://polarispix.visualstudio.com/DefaultCollection/_git/testvso#refs/heads/master";}
[22:34:22]Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
[22:34:22]Publishing internal artifacts
[22:34:22][Publishing internal artifacts] Publishing 1 file using [ArtifactsCachePublisher]
[22:34:22][Publishing internal artifacts] Publishing 1 file using [WebPublisher]
[22:34:22]Using vcs information from agent file: 45dd508f2f4080f2.xml
[22:34:22]Clean build enabled: removing old files from C:\TeamCity\buildAgent\work\45dd508f2f4080f2
[22:34:22]Checkout directory: C:\TeamCity\buildAgent\work\45dd508f2f4080f2
[22:34:22]Updating sources: server side checkout (1s)
[22:34:22][Updating sources] Patch downloaded to C:\TeamCity\buildAgent\temp\buildTmp
[22:34:22][Updating sources] Will perform clean checkout. Reason: "Clean all files before build" turned on
[22:34:22][Updating sources] Transferring cached clean patch for VCS root: https://polarispix.visualstudio.com/DefaultCollection/_git/testvso#refs/heads/master
[22:34:23][Updating sources] Building incremental patch over the cached patch
[22:34:24][Updating sources] Repository sources transferred: 23.29 MB total
[22:34:24][Updating sources] Removing C:\TeamCity\buildAgent\work\45dd508f2f4080f2
[22:34:24][Updating sources] Updating C:\TeamCity\buildAgent\work\45dd508f2f4080f2
[22:34:24]Step 1/2: Restore  from Nuget (NuGet Installer) (1s)
[22:34:24][Step 1/2] scan: Searching for nuget.config files
[22:34:24][scan] Found packages folder: C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages
[22:34:24][scan] Found list of packages.config files: C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\repositories.config
[22:34:24][scan] Scanning projects in solution file: C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\AWSWebApp.sln
[22:34:24][scan] Found project C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\.nuget
[22:34:24][scan] Found project C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj
[22:34:24][scan] Found solution-wide packages.config: C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\.nuget\packages.config
[22:34:24][Step 1/2] restore: Restoring NuGet packages for AWSWebApp\AWSWebApp.sln (1s)
[22:34:24][restore] NuGet command: C:\TeamCity\buildAgent\plugins\nuget-agent\bin\JetBrains.TeamCity.NuGetRunner.exe C:\TeamCity\buildAgent\tools\NuGet.CommandLine.DEFAULT.nupkg\tools\NuGet.exe restore C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\AWSWebApp.sln
[22:34:24][restore] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script7408884420244273979.cmd
[22:34:24][restore] in directory: C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp
[22:34:24][restore] JetBrains TeamCity NuGet Runner 8.0.37176.9
[22:34:24][restore] Registered additional extensions from paths: C:\TeamCity\buildAgent\plugins\nuget-agent\bin\plugins-2.8
[22:34:24][restore] Starting NuGet.exe 2.8.60717.93 from C:\TeamCity\buildAgent\tools\NuGet.CommandLine.DEFAULT.nupkg\tools\NuGet.exe
[22:34:25][restore] Installing 'MSBuild.Microsoft.VisualStudio.Web.targets 14.0.0'.
[22:34:25][restore] Successfully installed 'MSBuild.Microsoft.VisualStudio.Web.targets 14.0.0'.
[22:34:25][restore] Installing 'EntityFramework 6.1.3'.
[22:34:25][restore] Installing 'bootstrap 3.3.5'.
[22:34:25][restore] Successfully installed 'bootstrap 3.3.5'.
[22:34:25][restore] Installing 'jQuery 2.1.4'.
[22:34:25][restore] Successfully installed 'jQuery 2.1.4'.
[22:34:25][restore] Installing 'jQuery.Validation 1.14.0'.
[22:34:25][restore] Successfully installed 'jQuery.Validation 1.14.0'.
[22:34:25][restore] Installing 'Microsoft.AspNet.Identity.Core 2.2.1'.
[22:34:25][restore] Successfully installed 'Microsoft.AspNet.Identity.Core 2.2.1'.
[22:34:25][restore] Installing 'Microsoft.AspNet.Identity.EntityFramework 2.2.1'.
[22:34:25][restore] Successfully installed 'Microsoft.AspNet.Identity.EntityFramework 2.2.1'.
[22:34:25][restore] Successfully installed 'EntityFramework 6.1.3'.
[22:34:25][restore] Installing 'Microsoft.AspNet.Identity.Owin 2.2.1'.
[22:34:25][restore] Successfully installed 'Microsoft.AspNet.Identity.Owin 2.2.1'.
[22:34:25][restore] Installing 'Microsoft.AspNet.Mvc 5.2.3'.
[22:34:25][restore] Installing 'Microsoft.AspNet.WebPages 3.2.3'.
[22:34:25][restore] Successfully installed 'Microsoft.AspNet.Mvc 5.2.3'.
[22:34:25][restore] Successfully installed 'Microsoft.AspNet.WebPages 3.2.3'.
[22:34:25][restore] Installing 'Microsoft.AspNet.Razor 3.2.3'.
[22:34:25][restore] Successfully installed 'Microsoft.AspNet.Razor 3.2.3'.
[22:34:25][restore] Installing 'Microsoft.Owin 3.0.1'.
[22:34:25][restore] Successfully installed 'Microsoft.Owin 3.0.1'.
[22:34:25][restore] Installing 'Microsoft.jQuery.Unobtrusive.Validation 3.2.3'.
[22:34:25][restore] Successfully installed 'Microsoft.jQuery.Unobtrusive.Validation 3.2.3'.
[22:34:25][restore] Installing 'Microsoft.Owin.Host.SystemWeb 3.0.1'.
[22:34:25][restore] Successfully installed 'Microsoft.Owin.Host.SystemWeb 3.0.1'.
[22:34:26][restore] Installing 'Microsoft.Owin.Security 3.0.1'.
[22:34:26][restore] Successfully installed 'Microsoft.Owin.Security 3.0.1'.
[22:34:26][restore] Installing 'Microsoft.Owin.Security.Cookies 3.0.1'.
[22:34:26][restore] Successfully installed 'Microsoft.Owin.Security.Cookies 3.0.1'.
[22:34:26][restore] Installing 'Microsoft.Owin.Security.Google 3.0.1'.
[22:34:26][restore] Successfully installed 'Microsoft.Owin.Security.Google 3.0.1'.
[22:34:26][restore] Installing 'Microsoft.Owin.Security.Facebook 3.0.1'.
[22:34:26][restore] Successfully installed 'Microsoft.Owin.Security.Facebook 3.0.1'.
[22:34:26][restore] Installing 'Microsoft.Owin.Security.MicrosoftAccount 3.0.1'.
[22:34:26][restore] Successfully installed 'Microsoft.Owin.Security.MicrosoftAccount 3.0.1'.
[22:34:26][restore] Installing 'Microsoft.Owin.Security.OAuth 3.0.1'.
[22:34:26][restore] Successfully installed 'Microsoft.Owin.Security.OAuth 3.0.1'.
[22:34:26][restore] Installing 'Microsoft.Owin.Security.Twitter 3.0.1'.
[22:34:26][restore] Successfully installed 'Microsoft.Owin.Security.Twitter 3.0.1'.
[22:34:26][restore] Installing 'Modernizr 2.8.3'.
[22:34:26][restore] Successfully installed 'Modernizr 2.8.3'.
[22:34:26][restore] Installing 'Respond 1.4.2'.
[22:34:26][restore] Installing 'Newtonsoft.Json 7.0.1'.
[22:34:26][restore] Successfully installed 'Respond 1.4.2'.
[22:34:26][restore] Successfully installed 'Newtonsoft.Json 7.0.1'.
[22:34:26][restore] All packages listed in packages.config are already installed.
[22:34:26][restore] Process exited with code 0
[22:34:26]Step 2/2: Build solution (Visual Studio (sln)) (2s)
[22:34:26][Step 2/2] Enabling OctoPack
[22:34:26][Step 2/2] Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MsBuildBootstrap.exe /workdir:C:\TeamCity\buildAgent\work\45dd508f2f4080f2 "/msbuildPath:C:\Program Files (x86)\MSBuild\12.0\bin\MSBuild.exe"
[22:34:26][Step 2/2] in directory: C:\TeamCity\buildAgent\work\45dd508f2f4080f2
[22:34:28][Step 2/2] AWSWebApp\AWSWebApp.sln.teamcity: Build target: TeamCity_Generated_Build
[22:34:28][AWSWebApp\AWSWebApp.sln.teamcity] TeamCity_Generated_Build
[22:34:28][TeamCity_Generated_Build] MSBuild
[22:34:28][MSBuild] AWSWebApp\AWSWebApp.sln: Build target: Rebuild
[22:34:28][AWSWebApp\AWSWebApp.sln] ValidateSolutionConfiguration
[22:34:28][ValidateSolutionConfiguration] Building solution configuration "Release|Any CPU".
[22:34:28][AWSWebApp\AWSWebApp.sln] Rebuild
[22:34:28][Rebuild] MSBuild
[22:34:28][MSBuild] AWSWebApp\MyPubWebsite\MyPubWebsite.csproj: Build target: Rebuild
[22:34:28][AWSWebApp\MyPubWebsite\MyPubWebsite.csproj] CoreClean
[22:34:28][CoreClean] MakeDir
[22:34:28][MakeDir] Creating directory "obj\Release\".
[22:34:28][AWSWebApp\MyPubWebsite\MyPubWebsite.csproj] PrepareForBuild
[22:34:28][PrepareForBuild] MakeDir
[22:34:28][MakeDir] Creating directory "bin\".
[22:34:28][AWSWebApp\MyPubWebsite\MyPubWebsite.csproj] ResolveAssemblyReferences
[22:34:28][ResolveAssemblyReferences] ResolveAssemblyReference
[22:34:28][ResolveAssemblyReference] Primary reference "Antlr3.Runtime".
[22:34:28][ResolveAssemblyReference] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635, 5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Antlr3.Runtime". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
[22:34:28][ResolveAssemblyReference] For SearchPath "{HintPathFromItem}".
[22:34:28][ResolveAssemblyReference] Considered "..\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "{TargetFrameworkDirectory}".
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Antlr3.Runtime.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Antlr3.Runtime.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Antlr3.Runtime.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\Antlr3.Runtime.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\Antlr3.Runtime.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\Antlr3.Runtime.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "{Registry:Software\Microsoft\.NETFramework,v4.5,AssemblyFoldersEx}".
[22:34:28][ResolveAssemblyReference] Considered AssemblyFoldersEx locations.
[22:34:28][ResolveAssemblyReference] For SearchPath "{GAC}".
[22:34:28][ResolveAssemblyReference] Considered "Antlr3.Runtime", which was not found in the GAC.
[22:34:28][ResolveAssemblyReference] For SearchPath "{RawFileName}".
[22:34:28][ResolveAssemblyReference] Considered treating "Antlr3.Runtime" as a file name, but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "bin\".
[22:34:28][ResolveAssemblyReference] Considered "bin\Antlr3.Runtime.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "bin\Antlr3.Runtime.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "bin\Antlr3.Runtime.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Primary reference "System.Web.Optimization".
[22:34:28][ResolveAssemblyReference] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635, 5): warning MSB3245: 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.
[22:34:28][ResolveAssemblyReference] For SearchPath "{HintPathFromItem}".
[22:34:28][ResolveAssemblyReference] Considered "..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "{TargetFrameworkDirectory}".
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.Optimization.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.Optimization.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.Optimization.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Web.Optimization.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Web.Optimization.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Web.Optimization.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "{Registry:Software\Microsoft\.NETFramework,v4.5,AssemblyFoldersEx}".
[22:34:28][ResolveAssemblyReference] Considered AssemblyFoldersEx locations.
[22:34:28][ResolveAssemblyReference] For SearchPath "{GAC}".
[22:34:28][ResolveAssemblyReference] Considered "System.Web.Optimization", which was not found in the GAC.
[22:34:28][ResolveAssemblyReference] For SearchPath "{RawFileName}".
[22:34:28][ResolveAssemblyReference] Considered treating "System.Web.Optimization" as a file name, but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "bin\".
[22:34:28][ResolveAssemblyReference] Considered "bin\System.Web.Optimization.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "bin\System.Web.Optimization.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "bin\System.Web.Optimization.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Primary reference "Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL".
[22:34:28][ResolveAssemblyReference] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635, 5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
[22:34:28][ResolveAssemblyReference] For SearchPath "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45".
[22:34:28][ResolveAssemblyReference] Considered "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\Microsoft.Web.Infrastructure.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\Microsoft.Web.Infrastructure.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\Microsoft.Web.Infrastructure.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45".
[22:34:28][ResolveAssemblyReference] Considered "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\Microsoft.Web.Infrastructure.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\Microsoft.Web.Infrastructure.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\Microsoft.Web.Infrastructure.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "{HintPathFromItem}".
[22:34:28][ResolveAssemblyReference] Considered "..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "{TargetFrameworkDirectory}".
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Microsoft.Web.Infrastructure.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Microsoft.Web.Infrastructure.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Microsoft.Web.Infrastructure.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\Microsoft.Web.Infrastructure.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\Microsoft.Web.Infrastructure.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\Microsoft.Web.Infrastructure.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "{Registry:Software\Microsoft\.NETFramework,v4.5,AssemblyFoldersEx}".
[22:34:28][ResolveAssemblyReference] Considered AssemblyFoldersEx locations.
[22:34:28][ResolveAssemblyReference] For SearchPath "{GAC}".
[22:34:28][ResolveAssemblyReference] Considered "Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL", which was not found in the GAC.
[22:34:28][ResolveAssemblyReference] For SearchPath "bin\".
[22:34:28][ResolveAssemblyReference] Considered "bin\Microsoft.Web.Infrastructure.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "bin\Microsoft.Web.Infrastructure.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "bin\Microsoft.Web.Infrastructure.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Primary reference "WebGrease".
[22:34:28][ResolveAssemblyReference] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635, 5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "WebGrease". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
[22:34:28][ResolveAssemblyReference] For SearchPath "{HintPathFromItem}".
[22:34:28][ResolveAssemblyReference] Considered "..\packages\WebGrease.1.5.2\lib\WebGrease.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "{TargetFrameworkDirectory}".
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\WebGrease.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\WebGrease.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\WebGrease.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\WebGrease.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\WebGrease.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\WebGrease.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "{Registry:Software\Microsoft\.NETFramework,v4.5,AssemblyFoldersEx}".
[22:34:28][ResolveAssemblyReference] Considered AssemblyFoldersEx locations.
[22:34:28][ResolveAssemblyReference] For SearchPath "{GAC}".
[22:34:28][ResolveAssemblyReference] Considered "WebGrease", which was not found in the GAC.
[22:34:28][ResolveAssemblyReference] For SearchPath "{RawFileName}".
[22:34:28][ResolveAssemblyReference] Considered treating "WebGrease" as a file name, but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "bin\".
[22:34:28][ResolveAssemblyReference] Considered "bin\WebGrease.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "bin\WebGrease.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "bin\WebGrease.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Primary reference "Owin".
[22:34:28][ResolveAssemblyReference] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635, 5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Owin". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
[22:34:28][ResolveAssemblyReference] For SearchPath "{HintPathFromItem}".
[22:34:28][ResolveAssemblyReference] Considered "..\packages\Owin.1.0\lib\net40\Owin.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "{TargetFrameworkDirectory}".
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Owin.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Owin.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Owin.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\Owin.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\Owin.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\Owin.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "{Registry:Software\Microsoft\.NETFramework,v4.5,AssemblyFoldersEx}".
[22:34:28][ResolveAssemblyReference] Considered AssemblyFoldersEx locations.
[22:34:28][ResolveAssemblyReference] For SearchPath "{GAC}".
[22:34:28][ResolveAssemblyReference] Considered "Owin", which was not found in the GAC.
[22:34:28][ResolveAssemblyReference] For SearchPath "{RawFileName}".
[22:34:28][ResolveAssemblyReference] Considered treating "Owin" as a file name, but it didn't exist.
[22:34:28][ResolveAssemblyReference] For SearchPath "bin\".
[22:34:28][ResolveAssemblyReference] Considered "bin\Owin.winmd", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "bin\Owin.dll", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Considered "bin\Owin.exe", but it didn't exist.
[22:34:28][ResolveAssemblyReference] Consider app.config remapping of assembly "Microsoft.Owin, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "2.1.0.0" [] to Version "3.0.1.0" [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.Owin.3.0.1\lib\net45\Microsoft.Owin.dll] to solve conflict and get rid of warning.
[22:34:28][ResolveAssemblyReference] Consider app.config remapping of assembly "Microsoft.Owin.Security.OAuth, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "2.1.0.0" [] to Version "3.0.1.0" [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.Owin.Security.OAuth.3.0.1\lib\net45\Microsoft.Owin.Security.OAuth.dll] to solve conflict and get rid of warning.
[22:34:28][ResolveAssemblyReference] Consider app.config remapping of assembly "Microsoft.Owin.Security.Cookies, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "2.1.0.0" [] to Version "3.0.1.0" [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.Owin.Security.Cookies.3.0.1\lib\net45\Microsoft.Owin.Security.Cookies.dll] to solve conflict and get rid of warning.
[22:34:28][ResolveAssemblyReference] Consider app.config remapping of assembly "Microsoft.Owin.Security, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "2.1.0.0" [] to Version "3.0.1.0" [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.Owin.Security.3.0.1\lib\net45\Microsoft.Owin.Security.dll] to solve conflict and get rid of warning.
[22:34:28][ResolveAssemblyReference] Consider app.config remapping of assembly "Newtonsoft.Json, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" from Version "6.0.0.0" [] to Version "7.0.0.0" [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll] to solve conflict and get rid of warning.
[22:34:28][ResolveAssemblyReference] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635, 5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Owin" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Owin.Security.OAuth" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Owin.Security.Cookies" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Owin.Security" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /><bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" /></dependentAssembly></assemblyBinding>
[22:34:28][ResolveAssemblyReference] AssemblyFoldersEx location: "{Registry:Software\Microsoft\.NETFramework,v4.5,AssemblyFoldersEx}"
[22:34:28][ResolveAssemblyReference] C:\Program Files (x86)\Microsoft Chart Controls\Assemblies
[22:34:28][AWSWebApp\MyPubWebsite\MyPubWebsite.csproj] CoreCompile
[22:34:28][CoreCompile] Csc
[22:34:28][Csc] C:\Program Files (x86)\MSBuild\12.0\bin\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE /highentropyva+ /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.Identity.Core.2.2.1\lib\net45\Microsoft.AspNet.Identity.Core.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.Identity.EntityFramework.2.2.1\lib\net45\Microsoft.AspNet.Identity.EntityFramework.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.Identity.Owin.2.2.1\lib\net45\Microsoft.AspNet.Identity.Owin.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Microsoft.CSharp.dll" /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.Owin.3.0.1\lib\net45\Microsoft.Owin.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.Owin.Host.SystemWeb.3.0.1\lib\net45\Microsoft.Owin.Host.SystemWeb.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.Owin.Security.Cookies.3.0.1\lib\net45\Microsoft.Owin.Security.Cookies.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.Owin.Security.3.0.1\lib\net45\Microsoft.Owin.Security.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.Owin.Security.Facebook.3.0.1\lib\net45\Microsoft.Owin.Security.Facebook.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.Owin.Security.Google.3.0.1\lib\net45\Microsoft.Owin.Security.Google.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.Owin.Security.MicrosoftAccount.3.0.1\lib\net45\Microsoft.Owin.Security.MicrosoftAccount.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.Owin.Security.OAuth.3.0.1\lib\net45\Microsoft.Owin.Security.OAuth.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.Owin.Security.Twitter.3.0.1\lib\net45\Microsoft.Owin.Security.Twitter.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.ComponentModel.DataAnnotations.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Configuration.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Drawing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.EnterpriseServices.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Net.Http.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Net.Http.WebRequest.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.Abstractions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.ApplicationServices.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.DynamicData.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.Entity.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.Extensions.dll" /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.Routing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.Services.dll" /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll /reference:C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.Linq.dll" /debug:pdbonly /optimize+ /out:obj\Release\MyPubWebsite.dll /subsystemversion:6.00 /target:library /utf8output App_Start\BundleConfig.cs App_Start\FilterConfig.cs App_Start\IdentityConfig.cs App_Start\RouteConfig.cs App_Start\Startup.Auth.cs Controllers\AccountController.cs Controllers\HomeController.cs Controllers\ManageController.cs Global.asax.cs Models\AccountViewModels.cs Models\IdentityModels.cs Models\ManageViewModels.cs Properties\AssemblyInfo.cs Startup.cs "C:\TeamCity\buildAgent\temp\buildTmp\.NETFramework,Version=v4.5.AssemblyAttributes.cs"
[22:34:28][Csc] App_Start\BundleConfig.cs(2, 18): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
[22:34:28][Csc] Global.asax.cs(6, 18): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
[22:34:28][Csc] App_Start\BundleConfig.cs(9, 44): error CS0246: The type or namespace name 'BundleCollection' could not be found (are you missing a using directive or an assembly reference?)
[22:34:28][Csc] App_Start\Startup.Auth.cs(15, 35): error CS0246: The type or namespace name 'IAppBuilder' could not be found (are you missing a using directive or an assembly reference?)
[22:34:28][Csc] Startup.cs(9, 35): error CS0246: The type or namespace name 'IAppBuilder' could not be found (are you missing a using directive or an assembly reference?)
[22:34:28][Step 2/2] Process exited with code 1
[22:34:28][Step 2/2] MSBuild output
[22:34:28][MSBuild output] Done Building Project "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\AWSWebApp.sln.teamcity" (TeamCity_Generated_Build target(s)) -- FAILED.
[22:34:28][MSBuild output]
[22:34:28][MSBuild output] Build FAILED.
[22:34:28][MSBuild output]
[22:34:28][MSBuild output] "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\AWSWebApp.sln.teamcity" (TeamCity_Generated_Build target) (1) ->
[22:34:28][MSBuild output] "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\AWSWebApp.sln" (Rebuild target) (2) ->
[22:34:28][MSBuild output] "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj" (Rebuild target) (3) ->
[22:34:28][MSBuild output] (ResolveAssemblyReferences target) ->
[22:34:28][MSBuild output] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Antlr3.Runtime". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj]
[22:34:28][MSBuild output] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5): warning MSB3245: 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:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj]
[22:34:28][MSBuild output] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj]
[22:34:28][MSBuild output] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "WebGrease". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj]
[22:34:28][MSBuild output] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Owin". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj]
[22:34:28][MSBuild output] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Owin" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Owin.Security.OAuth" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Owin.Security.Cookies" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Owin.Security" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /><bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" /></dependentAssembly></assemblyBinding> [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj]
[22:34:28][MSBuild output]
[22:34:28][MSBuild output]
[22:34:28][MSBuild output] "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\AWSWebApp.sln.teamcity" (TeamCity_Generated_Build target) (1) ->
[22:34:28][MSBuild output] "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\AWSWebApp.sln" (Rebuild target) (2) ->
[22:34:28][MSBuild output] "C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj" (Rebuild target) (3) ->
[22:34:28][MSBuild output] (CoreCompile target) ->
[22:34:28][MSBuild output] App_Start\BundleConfig.cs(2,18): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj]
[22:34:28][MSBuild output] Global.asax.cs(6,18): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj]
[22:34:28][MSBuild output] App_Start\BundleConfig.cs(9,44): error CS0246: The type or namespace name 'BundleCollection' could not be found (are you missing a using directive or an assembly reference?) [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj]
[22:34:28][MSBuild output] App_Start\Startup.Auth.cs(15,35): error CS0246: The type or namespace name 'IAppBuilder' could not be found (are you missing a using directive or an assembly reference?) [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj]
[22:34:28][MSBuild output] Startup.cs(9,35): error CS0246: The type or namespace name 'IAppBuilder' could not be found (are you missing a using directive or an assembly reference?) [C:\TeamCity\buildAgent\work\45dd508f2f4080f2\AWSWebApp\MyPubWebsite\MyPubWebsite.csproj]
[22:34:28][MSBuild output]
[22:34:28][MSBuild output] 6 Warning(s)
[22:34:28][MSBuild output] 5 Error(s)
[22:34:28][MSBuild output]
[22:34:28][MSBuild output] Time Elapsed 00:00:00.80
[22:34:28][Step 2/2] Step Build solution (Visual Studio (sln)) failed
[22:34:29]Publishing artifacts
[22:34:29][Publishing artifacts] Collecting files to publish: [C:\TeamCity\buildAgent\temp\buildTmp\nuget6285399701636649923packages\nuget.xml => .teamcity/nuget]
[22:34:29][Publishing artifacts] Publishing 1 file [C:/TeamCity/buildAgent/temp/buildTmp/nuget6285399701636649923packages/nuget.xml => .teamcity/nuget] using [ArtifactsCachePublisher]
[22:34:29][Publishing artifacts] Publishing 1 file [C:/TeamCity/buildAgent/temp/buildTmp/nuget6285399701636649923packages/nuget.xml => .teamcity/nuget] using [WebPublisher]
[22:34:29]Publishing internal artifacts
[22:34:29][Publishing internal artifacts] Publishing 1 file using [ArtifactsCachePublisher]
[22:34:29][Publishing internal artifacts] Publishing 1 file using [WebPublisher]
[22:34:29]Build finished
4 comments
Comment actions Permalink

Hello,

Could you please open .csproj file and review the

<HintPath>
values for the assemblies in question? Please make sure they line up with the directory structure on your CI server.
If it's not the case, then could you please try to run the same build using MSBuild build runner. Does it work?
0
Comment actions Permalink

I had tried building with MSbuild and Visual studio runner.
My Hint paths were correct.


I was able to fix my issue by install Visual studio 2013 agent. It is available for free from MSFT. I read many messages in various forums but I did not see the need to install visual studio agent anywhere. I saw folks installing visual studio on the build server but that solution was not acceptable



Thanks

0
Comment actions Permalink

Glad it works for you!
It's mentioned in the documentation that Visual Studio build runner requires the proper version of Microsoft Visual Studio installed on the build agent.

0
Comment actions Permalink

I did see your document that said appropriate version of Visual studio installed on the build server.
However this is generally not required by most CI tools.
Visual Studio agent was all that was required to install along with targets, msbuild tools etc.

Thank you for your help.

I have some ideas about how we can make it much easier to deploy TeamCity in Azure and AWS.
I will share it with the community once I am done.


Raj

0

Please sign in to leave a comment.