By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,996 Members | 1,179 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,996 IT Pros & Developers. It's quick & easy.

Problems running Team Builds with ASP.NET applications

P: n/a
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\TeamBuil d
\Microsoft.TeamFoundation.Build.targets : warning : Code coverage
instrumentation warning while processing file DLL.dll:
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\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\TeamBuil d
\Microsoft.TeamFoundation.Build.targets : warning : .
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\Microsoft.TeamFoundation.Build.targets : warning : Code coverage
instrumentation warning while processing file WindowsUI.exe:
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\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\TeamBuil d
\Microsoft.TeamFoundation.Build.targets : warning : .
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\Microsoft.TeamFoundation.Build.targets : warning : Cannot initialize
the ASP.NET project 'WebUI'.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\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\TeamBuil d
\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\TeamBuil d
\Microsoft.TeamFoundation.Build.targets : warning : Exception was
thrown:
Microsoft.VisualStudio.Enterprise.Common.AspNetHel perException: 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\TeamBuil d
\Microsoft.TeamFoundation.Build.targets : warning : at
System.Net.HttpWebRequest.GetResponse()
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\Microsoft.TeamFoundation.Build.targets : warning : at
Microsoft.VisualStudio.Enterprise.Common.BaseHelpe r.GetWorkerProcessInfo()
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\Microsoft.TeamFoundation.Build.targets : warning : --- End of
inner exception stack trace ---
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\Microsoft.TeamFoundation.Build.targets : warning : at
Microsoft.VisualStudio.Enterprise.Common.BaseHelpe r.GetWorkerProcessInfo()
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\Microsoft.TeamFoundation.Build.targets : warning : at
Microsoft.VisualStudio.Enterprise.Common.AspNetHel per.SetupListener()
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\Microsoft.TeamFoundation.Build.targets : warning : at
Microsoft.VisualStudio.Enterprise.Common.AspNetHel per.SetupInstrument(Type
type)
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\Microsoft.TeamFoundation.Build.targets : warning : at
Microsoft.VisualStudio.TestTools.CodeCoverage.Cove ragePlugIn.InitAspNetInstrumentation(TestRun
testRun).
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\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.
Jun 27 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Steve" <st*************@hotmail.comwrote in message
news:30**********************************@a70g2000 hsh.googlegroups.com...
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\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.

Jun 27 '08 #2

P: n/a
On 9 Jun, 14:56, "Leon Mayne" <l...@rmvme.mvps.orgwrote:
"Steve" <steve_barker...@hotmail.comwrote in message

news:30**********************************@a70g2000 hsh.googlegroups.com...
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuil d
\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.
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.
Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.