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>

devlicio.us wrote re: NCover Requires Admin Privileges To Run
on 05-23-2011 12:18 PM

Ncover requires admin privileges to run.. Smashing :)

devlicio.us wrote re: NCover Requires Admin Privileges To Run
on 06-03-2011 8:01 AM

Ncover requires admin privileges to run.. Bully :)

devlicio.us wrote re: NCover Requires Admin Privileges To Run
on 06-05-2011 8:17 AM

Ncover requires admin privileges to run.. Amazing :)

lip1 free porn e3zq wrote re: NCover Requires Admin Privileges To Run
on 07-02-2011 2:08 PM

Ncover requires admin privileges to run.. Reposted it :)

NCover Support wrote re: NCover Requires Admin Privileges To Run
on 11-01-2011 12:16 PM

NCover does require admin privileges for installation and license activation, but after that, it will not

require admin rights to profile an application that's running in the same session.

NCover will need admin rights when covering IIS or a Windows service, since those do start a separate session.

manual social bookmarking service wrote re: NCover Requires Admin Privileges To Run
on 01-19-2013 2:10 AM

7w3jvy Say, you got a nice article.Much thanks again. Want more.

buy generic viagra wrote re: NCover Requires Admin Privileges To Run
on 01-27-2013 12:06 PM

BSRPDU Enjoyed every bit of your post.Thanks Again. Fantastic.

buy viagra online wrote re: NCover Requires Admin Privileges To Run
on 02-02-2013 2:45 PM

QaVA4q Really enjoyed this article post.Thanks Again. Awesome.

buy stendra generic wrote re: NCover Requires Admin Privileges To Run
on 02-13-2013 4:27 PM

6Abns6 I really liked your article.Much thanks again. Really Cool.

http://clomidnoprescription.beep.com/ wrote re: NCover Requires Admin Privileges To Run
on 02-24-2013 6:34 PM

PjYp1F Really informative article post.Really thank you! Awesome.

clomid no prescription wrote re: NCover Requires Admin Privileges To Run
on 02-27-2013 11:21 AM

AG1Tpe Thanks for the article post.Thanks Again. Will read on...

bookmarks wrote re: NCover Requires Admin Privileges To Run
on 03-13-2013 7:03 PM

P4ssmr Enjoyed every bit of your post.Much thanks again. Will read on...

bears wrote re: NCover Requires Admin Privileges To Run
on 04-06-2013 4:27 PM

Thank you for your article post.Much thanks again. Really Cool.

social bookmarking service wrote re: NCover Requires Admin Privileges To Run
on 04-28-2013 12:50 AM

xTcxiW I truly appreciate this blog.Thanks Again. Great.

digital slr lenses wrote re: NCover Requires Admin Privileges To Run
on 05-13-2013 10:12 PM

pqunCY Major thankies for the article post.Much thanks again. Much obliged.

social bookmarking service wrote re: NCover Requires Admin Privileges To Run
on 06-06-2013 3:36 AM

OImkoT Very informative article post.Much thanks again. Really Great.

best social bookmarks wrote re: NCover Requires Admin Privileges To Run
on 06-19-2013 8:03 PM

dEBxGi Looking forward to reading more. Great post.Really looking forward to read more. Awesome.

social bookmarks wrote re: NCover Requires Admin Privileges To Run
on 06-20-2013 7:56 PM

DB1wL9 Awesome blog.Much thanks again. Great.

great service wrote re: NCover Requires Admin Privileges To Run
on 07-04-2013 1:31 PM

Ry6AUV I really enjoy the post.Thanks Again. Really Cool.

cool news wrote re: NCover Requires Admin Privileges To Run
on 07-10-2013 12:12 AM

ZTGNfM Major thankies for the blog article.Much thanks again. Awesome.

super news wrote re: NCover Requires Admin Privileges To Run
on 07-11-2013 7:17 PM

ZjqIFJ I value the article.Thanks Again. Fantastic.

buy viagra online cheap wrote re: NCover Requires Admin Privileges To Run
on 07-24-2013 4:41 AM

Thank you ever so for you blog article.Much thanks again. Great.

visit this site wrote re: NCover Requires Admin Privileges To Run
on 07-25-2013 6:43 AM

Major thankies for the post.Much thanks again. Really Great.

buy viagra online cheap wrote re: NCover Requires Admin Privileges To Run
on 07-25-2013 7:06 PM

Very neat blog article.Much thanks again. Cool.

best news on earth wrote re: NCover Requires Admin Privileges To Run
on 07-26-2013 9:37 AM

DdSze4 I value the blog post.Much thanks again.

buy social bookmarks wrote re: NCover Requires Admin Privileges To Run
on 07-28-2013 9:03 PM

136VN3 I think this is a real great blog post. Keep writing.

amazing news wrote re: NCover Requires Admin Privileges To Run
on 08-03-2013 9:39 AM

NQnkeJ I really liked your blog post.Thanks Again. Keep writing.

best news wrote re: NCover Requires Admin Privileges To Run
on 08-03-2013 7:36 PM

u3ED6A I truly appreciate this blog post.Much thanks again. Great.

awesome links for you wrote re: NCover Requires Admin Privileges To Run
on 08-19-2013 9:19 AM

kVAdTr Thanks-a-mundo for the blog post.Really thank you! Much obliged.

great link buildng wrote re: NCover Requires Admin Privileges To Run
on 08-20-2013 1:09 AM

RBoO29 Really appreciate you sharing this article post.Really looking forward to read more.

buy viagra online cheap wrote re: NCover Requires Admin Privileges To Run
on 09-02-2013 10:22 AM

Looking forward to reading more. Great blog article.Really thank you! Really Cool.

best link building wrote re: NCover Requires Admin Privileges To Run
on 09-04-2013 12:59 AM

M00WXL Major thankies for the blog post.Much thanks again. Much obliged.

learn more wrote re: NCover Requires Admin Privileges To Run
on 09-08-2013 6:32 AM

Thanks for the article.Really looking forward to read more. Keep writing.

only for 5 dollars wrote re: NCover Requires Admin Privileges To Run
on 09-12-2013 11:41 PM

tGPztk I appreciate you sharing this post. Awesome.

cheap link building wrote re: NCover Requires Admin Privileges To Run
on 09-24-2013 2:58 PM

GIIRik Awesome blog.Thanks Again. Really Cool.

cheap seo work wrote re: NCover Requires Admin Privileges To Run
on 09-29-2013 4:44 AM

coCBYw Enjoyed every bit of your article.Much thanks again. Will read on...

link building team wrote re: NCover Requires Admin Privileges To Run
on 09-30-2013 8:41 PM

pAnsx8 Great, thanks for sharing this post.Thanks Again. Really Cool.

link building team wrote re: NCover Requires Admin Privileges To Run
on 10-16-2013 2:11 AM

J7l5fG I appreciate you sharing this post.Really thank you!

top seo guys wrote re: NCover Requires Admin Privileges To Run
on 10-26-2013 5:26 AM

sdDvWc Thanks-a-mundo for the blog.Really thank you! Really Cool.

link building wrote re: NCover Requires Admin Privileges To Run
on 11-02-2013 1:40 AM

kx9lEi Very neat blog post.Really looking forward to read more. Keep writing.

crorkz matz wrote re: NCover Requires Admin Privileges To Run
on 08-06-2014 3:17 PM

jjVLTg Very good article.Really looking forward to read more. Really Cool.

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
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)