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 文件下的刪掉

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM