Question
What to do when one cannot connect to the myQA SRS device with having an "PerformanceValueWriter" error in the IBADos.Core.UMS.SBRT.Server.log file?
Answer
When you cannot connect to the myQA SRS device and have a similar error like this in C:\ProgramData\IBA Dosimetry\SBRTAdapter\logs\IBADos.Core.UMS.SBRT.Server.log, please follow the below instructions:
2025-02-05 08:01:25.4553;Error;Application exception occured: Unity.ResolutionFailedException: Resolution failed with error: Exception has been thrown by the target of an invocation.
For more detailed information run Unity in debug mode: new UnityContainer().AddExtension(new Diagnostic())
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.InvalidOperationException: Category does not exist.
at System.Diagnostics.PerformanceCounterLib.CounterExists(String machine, String category, String counter)
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.Initialize()
at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)
at IBADos.Core.UMS.SBRT.Adapter.Internal.PerformanceValueWriter..ctor(ILoggerFactory loggerFactory, Func1 timerFactory) in C:\Agent1\_work\245\s\Sources\IBADos.Core.UMS.SBRT.Adapter\Internal\PerformanceValueWriter.cs:line 49 at IBADos.Core.UMS.SBRT.Adapter.Internal.SbrtHermesAdapter..ctor(ILoggerFactory loggerFactory, ISbrtHermesDevice sbrtHermesDevice, ISbrtDeviceFinder sbrtDeviceFinder, ISbrtDevice sbrtDevice, IDeviceDbFactory deviceDbFactory, Func1 timerFactory, ICommandLineArguments commandLineArguments, Func1 queueFactory) in C:\Agent1\_work\245\s\Sources\IBADos.Core.UMS.SBRT.Adapter\Internal\SbrtHermesAdapter.cs:line 91 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Unity.Processors.ConstructorProcessor.<>c__DisplayClass16_0.<GetResolverDelegate>b__0(BuilderContext& c) at Unity.Processors.MemberProcessor2.<>c__DisplayClass8_0.b__0(BuilderContext& c)
at Unity.Processors.MemberProcessor2.<>c__DisplayClass8_0.<GetResolver>b__0(BuilderContext& c) at Unity.Processors.MemberProcessor2.<>c__DisplayClass8_0.b__0(BuilderContext& c)
at Unity.UnityContainer.<>c__DisplayClass113_0.b__0(BuilderContext& c)
at Unity.Strategies.BuildPlanStrategy.PreBuildUp(BuilderContext& context)
at Unity.UnityContainer.<>c.<.ctor>b__73_1(BuilderContext& context)
--- End of inner exception stack trace ---
at Unity.UnityContainer.<>c.<.ctor>b__73_1(BuilderContext& context)
at Unity.UnityContainer.Unity.IUnityContainer.Resolve(Type type, String name, ResolverOverride[] overrides)
at IBADos.Core.UMS.SBRT.Server.Worker.ExecuteAsync(CancellationToken stoppingToken) in C:\Agent1\_work\245\s\Sources\IBADos.Core.UMS.SBRT.Server\Worker.cs:line 28;MESSNB-NIE-05;12420;;4;IBADos.Core.UMS.SBRT.Server.Worker;
Step 1
Please open the Windows Performance Monitor (German: Leistungsüberwachung) and check for an error message similar like this:
Step 2
Open cmd as Windows admin and execute:
lodctr /r
There should be a success message displayed.
Step 3
You should now able to connect to the myQA SRS device again.