Friday, February 26, 2010

Cannot initialize the ASP.NET project

After enabling Code Coverage on a Web Application, our build showed up red :-(

The build log on our TFS 2010 Build Server showed us following information:

  Run has the following issue(s):
         Cannot initialize the ASP.NET project 'Project.Host'.
         Exception was thrown: The web site could not be configured correctly; getting ASP.NET process information failed. Requesting 'http://localhost:1709/VSEnterpriseHelper.axd' returned an error: The remote server returned an error: (500) Internal Server Error.
….
     Done executing task "TestToolsTask" -- FAILED.
1:7>Done building target "CoreTestConfiguration" in project "TFSBuild.proj" -- FAILED.

I couldn’t find a good solution, so I had to disable the code coverage on the web project. No idea what could be wrong…

1 comment:

byerspc said...

try the second solution from this post
http://stackoverflow.com/questions/2815385/tfs-and-code-coverage-for-web-application-mvc-assemblies-not-working

It worked for me.