【錯誤】U8調用接口報錯
System. Reflection.TargetInvocationException:調用的目標發生了異常。
--- System.lO.FileNotFoundException: Could not load file or assembly
'securityAndCreditldentity, Version= 1.0.0.0, Culture=neutral,
PublicKeyToken=f161522a560143f5' or one of its dependencies.系統找不到指定的
文件。
在UFSof.U8.Framework.Login.Ul.clsLogin.InternalLogin(String pSubld, String
Userld, String Pwd, String appServer, String operDate, String dataSource, String
WorkStationSerial, Boolean ChangePwd, String NewPassword, Boolean
KickOutWorkStation, Boolean ShowLoginForm)
在UFSof.U8.Framework.Login.Ul.clsLogin.login(String pSubld, String Userld,
String Pwd, String appServer, String operDate, String dataSource, String
WorkStationSerial, Boolean ShowLoginForm)
---內部異常堆棧跟蹤的結尾---
在System. RuntimeMethodHandle. InvokeMethod(Object target, Object[]
arguments, Signature sig, Boolean constructor)
在System.Reflection.RuntimeMethodInfo.UnsafelnvokeInternal(Object obj,
Object[] parameters, Object[] arguments)
在System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object] parameters, CultureInfo culture)
在System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags,
Binder binder, Object target, Object] providedArgs, ParameterModifier[]
modifiers, CultureInfo culture, String[] namedParams)
在System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder
binder, Object target, Object[ args)
在UFIDA.TQ.U8CO.Common.DxComObject. DoMethod(String MethodName,
Object[] args)
在Ufida.TQ.U8CO.Login.TQLoginHelper.Login(String userCode, String
userPassword, String erpService, String loginDate, String accld)
在HuaJia ErpApi.U8Api. AddRds10JObject jo, String Accid, String constr)位置
F:\Project\NetProject\Huaia\ErpApi\U8Api.cs行號45
在
HuaJia.ApiAreas. api.Controllers. RdRecordController.Index(RequestRdRecord10
form)位置
F:\Project\NetProject\Huaia\HuaiaBarcode\HuaJia.Api\Areas\api\Controllers\Rd
RecordController.cs行號59

var tqLogin = TQLoginHelper.Login(sUserID, sPassword, sServer, sDate, Accid);
【解決方法】
將項目 bin 文件下的
刪掉
