Problem running dotCover report in TeamCity
Noticed this today in the build log after a failed build:
[14:14:34][Step 5/6] [JetBrains dotCover] Coverage session finished with errors: Can't profile the application because the host protection is applied. Probably it relates with Microsoft SQL..
The unittests do in fact use a LocalDB database, not full blown MS SQL. Any ideas what is going on here and how to fix it?
Dean
Please sign in to leave a comment.
We have the same problem. It is quite serious, since it completely stops coverage calculation.
Hi Klas,
What TeamCity version do you use? If not the latest ones then please consider an upgrade.
If the issue is actual for one of the new versions then please attach logs to the related issue - https://youtrack.jetbrains.com/issue/TW-28446.
We are running TeamCity Enterprise 8.0.5 (build 27692).
I have tried the WITH TRUSTWORTHY ON, and that has not helped.
Hi Klas,
Have you read the comment to the related issue and tried the suggested solution. If it does not help then please collect logs and attach them to this issue https://youtrack.jetbrains.com/issue/TW-28446.
Creating the database in a completely separate build step worked.