Tim Barcz

Sponsors

The Lounge

Wicked Cool Jobs

Groups and Affiliations

Syndication

News

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
NCover Requires Admin Privileges To Run

Just ran into this and wanted to share with everyone.  I have NCover integrated into our continuous integration server.  I use it for informational purposes only.  In other words the build does not fail if coverage drops below a certain percentage.  A recent forced password change caused the CruiseControl.NET service to stop working as it was running under my account.  The reason it was running under my account is that I'm an admin on that machine and NCover.Console.exe requires admin privileges to run.  If you don't run under an admin account, the build server will work fine until it tries to run ncover, and then you get a deceptive error that can lead you to start looking in all the wrong places:

At least one test failed under code coverage.\r\nExternal Program Failed: c:\dev\ccnet\WebSite\build\tools\ncover\ncover.console.exe (return code was 1)

So rather than tying the service to my account I've gone ahead and created another account with admin privileges which is set to never have the password expire.  I don't like having the CruiseControl.NET service running off an admin account, but as far as I can tell it's the only way to get NCover to work.


Posted 08-26-2008 12:09 PM by Tim Barcz

[Advertisement]

Comments

Steve Evans wrote re: NCover Requires Admin Privileges To Run
on 08-26-2008 10:57 PM

I haven't tried it under CC.NET, but I know I've run into that issue with NCover.  Really threw me because I'm trying to do as much of my development as a non-admin.

Have you tried an exec command to do a runas and provide the admin credentials?  That way CC.NET is a non-admin, but the particular task has admin rights.

Tim Barcz wrote re: NCover Requires Admin Privileges To Run
on 08-26-2008 11:06 PM

@Steve

Good thought, I'll have to give that a try.  Did that work for you?

Thanks for the tip.

Dew Drop - August 27, 2008 | Alvin Ashcraft's Morning Dew wrote Dew Drop - August 27, 2008 | Alvin Ashcraft's Morning Dew
on 08-27-2008 8:47 AM

Pingback from  Dew Drop - August 27, 2008 | Alvin Ashcraft's Morning Dew

Joshua Flanagan wrote re: NCover Requires Admin Privileges To Run
on 08-31-2008 3:00 PM

But.... wouldn't that mean including the password for an admin account in plain text in your build file? If that is not something that bothers you - why would it bother you to run CC.NET as admin?

Chris Cyvas wrote re: NCover Requires Admin Privileges To Run
on 04-28-2009 7:16 PM

Thanks! Ran into this today and it was the fix. :)

adisyahya wrote re: NCover Requires Admin Privileges To Run
on 09-30-2009 7:56 AM

nice share.. thank you..<br>

regards,<br>

<a href="duniasoer.com/.../kenali-dan-kunjungi-objek-wisata-di-pandeglang.html">Kenali dan Kunjungi Objek Wisata di Pandeglang</a>

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)

CodeBetter.Com