Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Problems running Team Builds with ASP.NET applications

Reply
 
Old 06-06-2008   #1 (permalink)
Steve


 
 

Problems running Team Builds with ASP.NET applications

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.

My System SpecsSystem Spec
Old 06-09-2008   #2 (permalink)
Leon Mayne


 
 

Re: Problems running Team Builds with ASP.NET applications

"Steve" <steve_barker333@xxxxxx> wrote in message
news:30deb2f0-4acf-4363-b2d5-491b3db08383@xxxxxx
Quote:

> 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.

My System SpecsSystem Spec
Old 06-10-2008   #3 (permalink)
Steve


 
 

Re: Problems running Team Builds with ASP.NET applications

On 9 Jun, 14:56, "Leon Mayne" <l...@xxxxxx> wrote:
Quote:

> "Steve" <steve_barker...@xxxxxx> wrote in message
>
> news:30deb2f0-4acf-4363-b2d5-491b3db08383@xxxxxx
>
Quote:

> > 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.
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.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: Cannot Uninstall Visual Studio 2005 Team Suite & Team Explorer .NET General
Programs/Applications running Vista performance & maintenance
applications Running very slowly in vista Vista performance & maintenance
iis 7.0 - applications running under dot net framework 1.1 Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46