AF SDK 2.5 : OSIsoft.PI.Net.PINetManagerNotFoundException when not ADMINISTRATOR !

Discussion created by chandotnet on Dec 10, 2012
Latest reply on Feb 8, 2013 by Gregor

We have upgraded our clients to the last AF 2012 SDK and we found something really bad !


Each time we call GetValue on an attribute with a PI Point data reference, it will throw an exception : OSIsoft.PI.Net.PiNetManagerNotFound.


Why ? you are not an administartor ! Why we now need to be an admin with the new SDK ?


The "SessionManager" constructor verify if "pinetmgr" service is started and that new function use the .net ServiceController class to get the status of "pinetmgr". From there, you need to be a local admin or have specials policies in place to be able to use ServiceController.


Our workaround was to use "subinacl" a command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to domain.


But it can't stay like that !


Do we have more options ?


Thanks in advance !