• 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:ProjectNetProjectHuaiaErpApiU8Api.cs行号45

    HuaJia.ApiAreas. api.Controllers. RdRecordController.Index(RequestRdRecord10
    form)位置
    F:ProjectNetProjectHuaiaHuaiaBarcodeHuaJia.ApiAreasapiControllersRd
    RecordController.cs行号59

    var tqLogin = TQLoginHelper.Login(sUserID, sPassword, sServer, sDate, Accid);

    【解决方法】

    将项目 bin 文件下的删掉

  • 相关阅读:
    [Objective-C语言教程]决策结构(10)
    [Objective-C语言教程]循环语句(9)
    [Objective-C语言教程]关系运算符(8)
    [Objective-C语言教程]常量(7)
    [Objective-C语言教程]变量(6)
    [Objective-C语言教程]数据类型(5)
    转 Apache Ant 实现自动化部署
    转 智能化运维最佳实践-自动化
    ANT 操控 ORACLE数据库实践
    转: Ant 脚本的结构化设计
  • 原文地址:https://www.cnblogs.com/xqz0618/p/12712851.html
Copyright © 2020-2023  润新知