When I run the program, I am getting Unhandled Exception: System.MissingMethodException: Method not found: 'osisoft.af.asset.afvalue osisoft.af.pi.pipoint.currentvalue()
What program are you running? Is this something you coded or something someone else made?
As asked above, could you provide us with what is generating the error?
This is a problem which can occur when there is an old version of a DLL. Make sure that the latest assemblies are deployed.
Also PIPoint.CurrentValue method is available from AF SDK 2.7+.
I created this program.
I attached the vb here. It is working when I run it in my laptop. When I put the application in AF server (2012), it gives me the error (error attached)
The method is not available in the version of AFSDK you likely have installed on your AF server as Thyag mentioned in his response. In order to use this method you must have AFSDK 2.7 or higher. Your application will use the version of the dll that is installed on the machine you are running your application.
You can use the PIPoint.Snapshot Method instead which is supported in AF versions 2.6, 2.5( 2012).
Upgrading the AF Client would also be a solution here and if upgrading the AF server is at all possible, we would highly recommend for you to do this. AF 2012 is very old....
Retrieving data ...