U8登录 TQLoginHelper 调用目标发生异常

【错误】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 文件下的删掉

 

posted @ 2020-04-16 14:48  茄子鱼  阅读(1660)  评论(0编辑  收藏  举报