sawilde/opencover — Issue #69: System.Argument exception for Service Profilling on 64 bit machine
Author: abhijeetbedagkar
Created: 2012-02-27 11:06:24+00:00
State: open

Hello
I just have started using OpenCover. I dont know whether this is a issue or am i doing anythinf wrong

I am trying to profile a service on the 64 bit machine using following command

C:\Users\administrator\AppData\Local\Apps\OpenCover>OpenCover.Console.exe -target:"Certification Manager LookUp Service" -service -register -output:"c:\abcd.xml

which starts the service properly

Service starting 'Service Name'
Service started 'Service Name'

but then throws the following exception

Unhandled Exception: System.ArgumentException: No value exists with that name.
at Microsoft.Win32.RegistryKey.DeleteValue(String name, Boolean throwOnMissin
gValue)
at OpenCover.Console.ServiceEnvironmentManagement.ResetAccountEnvironment(Str
ing serviceAccountSid, String[] profilerEnvironment)
at OpenCover.Console.Program.RunService(CommandLineParser parser, Action`1 en
vironment, ILog logger)
at OpenCover.Framework.Manager.ProfilerManager.<>c__DisplayClass6.b__1(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
ontextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWor
kItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

I checked the registry that has the entry for the OpenCover as specified in the Usage document.

Please help

Many thanks

Abhijeet