opcServer版本问题
ArchMage是opcclient的库,opcfoundtion是用来写opcServer的库,但是如果一个项目里有两个库的话,会出现版本冲突,因为ArchMage自带71.96版本,必须将opcfoundtion的库从72.76降到71.96(因为我的opcserver是用72.76版本写的)。问题:72版本降到71版本运行opcserver会报:The application exits with error: Value cannot be null. (Parameter 'uri')最终解决在配置文件中把opc.https改成https:。

如果不降opcfoundtion版本,archmage会报:
MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1<Opc.Ua.Client.Session> Opc.Ua.Client.Session.Create(Opc.Ua.ApplicationConfiguration, Opc.Ua.ConfiguredEndpoint, Boolean, System.String, UInt32, Opc.Ua.IUserIdentity, System.Collections.Generic.IList`1<System.String>)'.
内部版本冲突引起,只能降自己版本。
浙公网安备 33010602011771号