Computer.WindowsService COMException

Aug 3, 2011 at 5:23 PM
Edited Aug 3, 2011 at 5:45 PM

This just started happening today and I'm not sure what I should do about it. For whatever reason I'm now getting a COMException error when trying to see if a Windows service exists. The XML looks like this:


<MSBuild.ExtensionPack.Computer.WindowsService TaskAction="CheckExists" ServiceName="$(ServiceName)" MachineName="$(ServiceServer)">
   <Output TaskParameter="Exists" PropertyName="ServiceExists" />


I'm running the latest 4.0 version and I've confirmed the ServiceName and ServiceServer properties are correct. Running the build as a domain admin still sees the error. The exact error is "COMException: \r"

Any thoughts?

Aug 11, 2011 at 8:20 PM

No. Does it happen on all machines?

Aug 11, 2011 at 9:03 PM

It turns out something was wrong with the machine I was connecting to. Restarting it solved the problem. Thanks though.

Aug 11, 2011 at 9:06 PM

Never underestimate a reboot :-)