我正在尝试调用 Dynamics Great Plains,但遇到了一个非常令人沮丧的错误。
我调用代码:
eConnectMethods eConCall = new eConnectMethods();
我立即捕获以下内容:
ERROR
System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri)
at System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType)
at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj)
...然后在上面的行中引用我的程序集。
谁能告诉我 eConnect 对象在寻找什么,以及如何让它工作?