Note that there are some explanatory texts on larger screens.

plurals
  1. POLocal Build v TFSBuild issue... any ideas?
    text
    copied!<p>I have a WCF project that exposes two services. When I build the service locally it works fine. When the TFS Build creates the assembly one of the services does not work. The client application throws an "Index was outside the bounds of the array" exception, before the service has been called.</p> <p>We are using TFS2010 against a migrated MSBuild based project not the new workflow process. </p> <p>I can replace the TFS built DLL with a release build version from my machine and the service starts working. I can put the TFS built version of the DLL on my machine and my local service starts to fail.</p> <p>Things I have checked:</p> <ul> <li>All projects are set to build Release | Any CPU</li> <li>Both machines have VS2010 SP1 installed</li> <li>Disassembling the two DLLs shows they contain identical code</li> </ul> <p>A slight worry: my machine is Windows 7 x64, the build machine is Windows Server 2003 x86. However, I presumed Any CPU would mean this shouldn't be a problem during the build process.</p> <p>Has anyone any suggestions of other approaches for investigating this issue?</p> <p>The stack trace from the client includes:</p> <p><code>System.ServiceModel.FaultException 1[System.ServiceModel.ExceptionDetail]: Index was outside the bounds of the array. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: System.IndexOutOfRangeException: Index was outside the bounds of the array. at Microsoft.CSharp.RuntimeBinder.ExpressionTreeCallRewriter.GetMethodInfoFromExpr(EXPRMETHODINFO methinfo) at Microsoft.CSharp.RuntimeBinder.ExpressionTreeCallRewriter.GenerateCall(EXPRCALL pExpr) at Microsoft.CSharp.RuntimeBinder.ExpressionTreeCallRewriter.VisitCALL(EXPRCALL pExpr) at Microsoft.CSharp.RuntimeBinder.Semantics.ExprVisitorBase.Dispatch(EXPR pExpr) at Microsoft.CSharp.RuntimeBinder.Semantics.ExprVisitorBase.Visit(EXPR pExpr) at Microsoft.CSharp.RuntimeBinder.ExpressionTreeCallRewriter.GenerateLambda(EXPRCALL pExpr) at Microsoft.CSharp.RuntimeBinder.ExpressionTreeCallRewriter.VisitCALL(EXPRCALL pExpr) at Microsoft.CSharp.RuntimeBinder.Semantics.ExprVisitorBase.Dispatch(EXPR pExpr) at Microsoft.CSharp.RuntimeBinder.Semantics.ExprVisitorBase.Visit(EXPR pExpr) at Microsoft.CSharp.RuntimeBinder...</code></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload