dotCover error message

Hi!

We have just installed teamCity on a new server and have problems enabling code coverage on a .Net 4.0 project using dotCover. This is the error message we get after the tests have been run and dotCover tries to collect the code coverage data:

 [JetBrains dotCover] Coverage session finished with errors: Can't profile the application because the host protection is applied. Probably it relates with Microsoft SQL..

I have no idea what this means, so any suggestions of how to fix it would be really welcome. We currently use MSTest.

Thanks in advance!

Emil

5 comments
Comment actions Permalink

Hi again,

A colleague found this post about running tests against a localdb database:

http://blog.coderinserepeat.com/code-coverage-for-sql-server-2012-localdb-driven-tests-with-teamcity-and-dotcover/

Seems similar to our problem since we too use localdb for our tests but we have problems follwoing his suggestions (setting the database as "trustworty").

Any tips on how to perform unit tests on the localdb database with code coverage?

Cheers,

Emil

0
Comment actions Permalink

We have the same problem.

The link you refer to is dead now.

0
Comment actions Permalink

I spoke too soon, we still have the problem even with trustworthy on.

0

Please sign in to leave a comment.