Build errors

Topics: General
Mar 28, 2012 at 12:13 PM

My build task is failing.

I have performed a build.cmd RestorePackages followed by a build.cmd. What am I doing wrong?

[Vince@sp I:\Dev\git\aspnetwebstack]$ cmd /c build.cmdMicrosoft (R) Build Engine Version 4.0.30319.17020[Microsoft .NET Framework, Version 4.0.30319.17020]Copyright (C) Microsoft Corporation 2007. All rights reserved.
  System.Web.Razor -> I:\Dev\git\aspnetwebstack\bin\Release\System.Web.Razor.dll  System.Web.WebPages.Deployment -> I:\Dev\git\aspnetwebstack\bin\Release\System.Web.WebPages.Deployment.dll  WebMatrix.Data -> I:\Dev\git\aspnetwebstack\bin\Release\WebMatrix.Data.dll  Microsoft.TestCommon -> I:\Dev\git\aspnetwebstack\bin\Release\Test\Microsoft.TestCommon.dll  System.Web.Razor.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Web.Razor.Test.dll  System.Net.Http.Formatting -> I:\Dev\git\aspnetwebstack\bin\Release\System.Net.Http.Formatting.dll  System.Web.WebPages -> I:\Dev\git\aspnetwebstack\bin\Release\System.Web.WebPages.dll  System.Web.WebPages.Deployment.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Web.WebPages.Deployment.T  est.dll  System.Web.Http -> I:\Dev\git\aspnetwebstack\bin\Release\System.Web.Http.dll  System.Json -> I:\Dev\git\aspnetwebstack\bin\Release\System.Json.dll  System.Net.Http.Formatting.Test.Unit -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Net.Http.Formatting.Test  .dll  System.Json.Test.Unit -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Json.Test.dll  System.Web.Http.SelfHost -> I:\Dev\git\aspnetwebstack\bin\Release\System.Web.Http.SelfHost.dll  System.Web.Http.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Web.Http.Test.dll  System.Web.Http.WebHost -> I:\Dev\git\aspnetwebstack\bin\Release\System.Web.Http.WebHost.dll  Microsoft.Web.Http.Data -> I:\Dev\git\aspnetwebstack\bin\Release\Microsoft.Web.Http.Data.dll  System.Json.Test.Integration -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Json.Test.Integration.dll  System.Net.Http.Formatting.Test.Integration -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Net.Http.Formatti  ng.Test.Integration.dll  SPA -> I:\Dev\git\aspnetwebstack\src\SPA\bin\Release\SPA.dll  Microsoft.Web.Http.Data.EntityFramework -> I:\Dev\git\aspnetwebstack\bin\Release\Microsoft.Web.Http.Data.EntityFra  mework.dll  System.Web.Http.Integration.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Web.Http.Integration.Test.dl  l  WebMatrix.Data.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\WebMatrix.Data.Test.dll  System.Web.WebPages.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Web.WebPages.Test.dll  System.Web.Helpers -> I:\Dev\git\aspnetwebstack\bin\Release\System.Web.Helpers.dll  System.Web.WebPages.Razor -> I:\Dev\git\aspnetwebstack\bin\Release\System.Web.WebPages.Razor.dll  WebMatrix.WebData -> I:\Dev\git\aspnetwebstack\bin\Release\WebMatrix.WebData.dll  System.Web.Mvc -> I:\Dev\git\aspnetwebstack\bin\Release\System.Web.Mvc.dll  System.Web.WebPages.Razor.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Web.WebPages.Razor.Test.dll  System.Web.Helpers.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Web.Helpers.Test.dll  Microsoft.Web.Helpers -> I:\Dev\git\aspnetwebstack\bin\Release\Microsoft.Web.Helpers.dll  System.Web.WebPages.Administration -> I:\Dev\git\aspnetwebstack\bin\Release\System.Web.WebPages.Administration.dll  Microsoft.Web.WebPages.OAuth -> I:\Dev\git\aspnetwebstack\bin\Release\Microsoft.Web.WebPages.OAuth.dll  WebMatrix.WebData.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\WebMatrix.WebData.Test.dll  System.Web.WebPages.Administration.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Web.WebPages.Administ  ration.Test.dll  Microsoft.Web.WebPages.OAuth.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\Microsoft.Web.WebPages.OAuth.Test.  dll  Microsoft.Web.Mvc -> I:\Dev\git\aspnetwebstack\bin\Release\Microsoft.Web.Mvc.dll  Microsoft.Web.Http.Data.Helpers -> I:\Dev\git\aspnetwebstack\bin\Release\Microsoft.Web.Http.Data.Helpers.dll  System.Web.Http.WebHost.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Web.Http.WebHost.Test.dll  Microsoft.Web.Helpers.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\Microsoft.Web.Helpers.Test.dll  System.Web.Http.SelfHost.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Web.Http.SelfHost.Test.dll  Microsoft.Web.Http.Data.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\Microsoft.Web.Http.Data.Test.dll  System.Web.Mvc.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\System.Web.Mvc.Test.dll  Microsoft.Web.Mvc.Test -> I:\Dev\git\aspnetwebstack\bin\Release\Test\Microsoft.Web.Mvc.Test.dll  xUnit.net MSBuild runner (32-bit .NET 4.0.30319.17020)  xUnit.net MSBuild runner (32-bit .NET 4.0.30319.17020)  xUnit.net MSBuild runner (32-bit .NET 4.0.30319.17020)  xunit.dll:     Version 1.9.0.1566  Test assembly: I:\Dev\git\aspnetwebstack\bin\Release\test\Microsoft.Web.Mvc.Test.dllI:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error : System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Web.Http.Data.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error : System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Web.Helpers.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at System.Reflection.Assembly.Load(AssemblyName assemblyRef)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at System.Reflection.Assembly.Load(AssemblyName assemblyRef)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at Xunit.Sdk.Executor..ctor(String assemblyFilename)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at Xunit.Sdk.Executor..ctor(String assemblyFilename)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at Xunit.ExecutorWrapper.RethrowWithNoStackTraceLoss(Exception ex)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at Xunit.ExecutorWrapper.RethrowWithNoStackTraceLoss(Exception ex)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at Xunit.ExecutorWrapper.CreateObject(String typeName, Object[] args)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at Xunit.ExecutorWrapper.CreateObject(String typeName, Object[] args)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at Xunit.ExecutorWrapper..ctor(String assemblyFilename, String configFilename, Boolean shadowCopy)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at Xunit.Runner.MSBuild.xunit.ExecuteAssembly(String assemblyFilename, String configFilename, IRunnerLogger logger)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at Xunit.ExecutorWrapper..ctor(String assemblyFilename, String configFilename, Boolean shadowCopy)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at Xunit.Runner.MSBuild.xunit.ExecuteAssembly(String assemblyFilename, String configFilename, IRunnerLogger logger)
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name signature could not be verified.The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)   at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)   at System.Reflection.RuntimeAssembly.GetExportedTypes()   at Xunit.Sdk.Executor.RunAssembly.<>c__DisplayClass9.<.ctor>b__4()   at Xunit.Sdk.Executor.ThreadRunner(Object threadStart)   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)   at System.Threading.ThreadHelper.ThreadStart(Object obj)  xUnit.net MSBuild runner (32-bit .NET 4.0.30319.17020)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error : System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Web.WebPages.OAuth.Test, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)  xUnit.net MSBuild runner (32-bit .NET 4.0.30319.17020)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)I:\Dev\git\aspnetwebstack\tools\WebStack.xunit.targets(12,9): error :    at System.Reflection.Assembly.Load(Assembly
**** BUILD SUCCESSFUL ***

Mar 28, 2012 at 12:41 PM

Checkout out "Getting and Building Code" section again

http://aspnetwebstack.codeplex.com/documentation

You need SkipStrongNames tool, to avoid checking strong names for particular assemblies.