We have a PI ProcessBook Add-In (.NET 4.0) that has been working fine for several years. Recently a customer installed it on a computer with ProcessBook 2015 R2 and now every time ProcessBook opens on that computer there is a popup error with the title "Element Relative Display" and text "Unable to cast object of type 'System.__ComObject' to type 'PISDK.PISDKClass'.
I was able to replicate the issue in-house on a test VM (Windows Server 2008). When remote debugging the Add-In, however, I can verify that there are no errors/exceptions thrown during any of the code in the "OnConnection" Sub. That message comes up after any code I can step through. I tried switching out the references by changing the following but it did not help.
* OSIsoft.PISDK.dll: 220.127.116.111 -> 18.104.22.1686
* OSIsoft.PBOjbLib.dll: 22.214.171.124 (I don't think this DLL was version stamped properly) -> 126.96.36.199
* OSIsoft.PBSymLib.dll: 188.8.131.52 (I don't think this DLL was version stamped properly) -> 184.108.40.206
I do not have ProcessBook 2015 R2 installed on my dev machine because we are trying to keep backwards compatibility back to ProcessBook 2012 SP1 - is that not going to be possible?
Any ideas on how to narrow down the problem source since remote debugging is not finding it?