最近有一个任务是利用NCo3.0调用RFC开发一个SAP的通用接口。写完之后发现接口在win10、win7下运行都没有问题,但在XP下面运行有些电脑可以跑,有些不可以跑。
异常如下:
The type initializer for 'SAP.Middleware.Connector.RfcConfigParameters' threw an exception.System.IO.FileNotFoundException: Could not load file or assembly 'sapnco_utils.dll' or one of its dependencies. wC
File name: 'sapnco_utils.dll'
at SAP.Middleware.Connector.RfcConfigParameters.loadConfiguration()
at SAP.Middleware.Connector.RfcConfigParameters..cctor()
后来经过多发查找,发现xp下面需要安装一个插件。