今天早上一个已经上线的项目报错什么操作都失败,上去看了一下,日志中记录的信息是反射创建对象失败,详细信息如下:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: type
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at FC.Shared.Common.CAssemblies.CreateInstance(IConfigFile file, String className, Object[] args)
at FC.Shared.Common.CAssemblies.CreateInstance(String className)
at FC.Shared.Common.CObjectFactory.CreateObject(String objectName)
at FC.Shared.Common.CApp.CreateObject(String bizObjName)
at FC.Ocean.Job.Server.CBizOzDocHeader.get_ObjOffice()
at FC.Ocean.Job.Server.CBizOzDocHeader.RefreshEBLPartnerInfo(String bkID, DataTable partnerTable, DataRow drwDocHeader, DataRow drwDocExtend, Hashtable argTbl, DataSet dmJobServer)
at FC.Ocean.Job.Server.CBizOzDocHeader.SetMblPartnerInfoToEbl(String bkID, DataSet dmJobServer, DataRow drwDocHeader, DataRow drwDocExtend, Hashtable argTbl)
at FC.Ocean.Job.Server.CBizOzDocHeader.RefreshPartner(String bkID, DataSet target, Int32 BandingHeader, String DocString)
at FC.Ocean.Job.Socket.CBizOzDocHeader.RefreshPartner_15(String bkID, DataSet target, Int32 BandingHeader, String DocString)