Свойство InstanceLifetime невозможно задать после инициализации экземпляра. Необходимо использовать конструктор по умолчанию и вручную задать свойства CategoryName, InstanceName, CounterName, InstanceLifetime и ReadOnly до установки RawValue.
Click to search this error in Google
English version
The InstanceLifetime cannot be set after the instance has been initialized. You must use the default constructor and set the CategoryName, InstanceName, CounterName, InstanceLifetime and ReadOnly properties manually before setting the RawValue.