Problems running Team Builds with ASP.NET applications

S

Steve

Hi guys,

I have a test solution (called TP2) which is checked in to a Team
Project (also called TP2). The solution contains:

* DLL (containing a single test class)
* Unit Test project (which trivially tests the class in the DLL)
* ASP.NET application (which exposes simple web-service and a single
ASPX page, both of which use the class in DLL)
* Windows application (which calls the simple web-service above)

The code compiles, the unit test passes and all the code in the
solution has been checked in.

I have set up a Team Build for the solution. It is configured to
perform testing and code coverage. However, this doesn't work. The
collection and compilation of the code works fine, but the build falls
over when it gets to the 'Running tests' phase of the build.
Strangely, it reports that the test passes. Here's a section from the
BuildLog.txt file:

========
Results Top Level Tests
------- ---------------
Passed (Main/)Tests.PersonTest.NameTest

Run has the following issue(s):
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : Code coverage
instrumentation warning while processing file DLL.dll:
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : Warning VSP2014 :
The resulting instrumented image appears to be invalid, and may not
run.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : .
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : Code coverage
instrumentation warning while processing file WindowsUI.exe:
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : Warning VSP2014 :
The resulting instrumented image appears to be invalid, and may not
run.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : .
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : Cannot initialize
the ASP.NET project 'WebUI'.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : Exception was
thrown: The web site could not be configured correctly; getting
ASP.NET process information failed. Requesting 'http://localhost:4834/
WebUI/VSEnterpriseHelper.axd' returned an error: The remote server
returned an error: (500) Internal Server Error..
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : Cannot initialize
post instrumentation for the ASP.NET project 'e:\tfs build\build
\tp2\mainbuild\sources\tp2\WebUI'.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : Exception was
thrown:
Microsoft.VisualStudio.Enterprise.Common.AspNetHelperException: The
web site could not be configured correctly; getting ASP.NET process
information failed. Requesting 'http://localhost:4834/WebUI/
VSEnterpriseHelper.axd' returned an error: The remote server returned
an error: (500) Internal Server Error. ---> System.Net.WebException:
The remote server returned an error: (500) Internal Server Error.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : at
System.Net.HttpWebRequest.GetResponse()
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : at
Microsoft.VisualStudio.Enterprise.Common.BaseHelper.GetWorkerProcessInfo()
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : --- End of
inner exception stack trace ---
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : at
Microsoft.VisualStudio.Enterprise.Common.BaseHelper.GetWorkerProcessInfo()
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : at
Microsoft.VisualStudio.Enterprise.Common.AspNetHelper.SetupListener()
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : at
Microsoft.VisualStudio.Enterprise.Common.AspNetHelper.SetupInstrument(Type
type)
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : at
Microsoft.VisualStudio.TestTools.CodeCoverage.CoveragePlugIn.InitAspNetInstrumentation(TestRun
testRun).
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : The code coverage
data for this project may be incomplete.
========

Has anyone else experienced this problem? If so, how did you get the
Team Build working?

Thanks in advance,

Steve.
 
L

Leon Mayne

Steve said:
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild
\Microsoft.TeamFoundation.Build.targets : warning : Warning VSP2014 :
The resulting instrumented image appears to be invalid, and may not
run.

Is the build server a 64-bit machine? As far as I remember there are issues
with code analysis on 64bit team builds but I could be wrong.
 
S

Steve

Is the build server a 64-bit machine? As far as I remember there are issues
with code analysis on 64bit team builds but I could be wrong.

Hi Leon,

Thanks for the suggestion! I'm afraid the TFS server is a 32-bit
machine, so back to the drawing board again. It's worth pointing out
that code analysis does work in non-ASP.NET projects.

Thanks again,

Steve.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top