初步信息:
行动!版本:v16 高级
主机:Windows 7 SP1
IDE:VS 2013
问题: 在尝试登录我的 act .pad 文件时
查看此错误"The type initializer for 'Protexis.' threw an exception. Value cannot be null. Parameter name: path1"
详细信息:
似乎当我点击此方法 -ACTFM.LogOn((path), user, pass);
时,代码中断并收到此错误。
尝试:
path
,user
并pass
在我的web.config中设置,然后传递给所述变量。经过测试,我已经验证他们正在通过。当我手动输入实际值(直接输入方法)时,问题仍然存在。- 我已经尝试过这个解决方案和它的变体。虽然我不完全确定我是否正确地做到了这一点并且不介意进一步调查
- 我已经尝试使用提供的开发 ACT 数据库以及我的测试数据库进行此操作
这是堆栈跟踪:
System.Reflection.TargetInvocationException was unhandled by user code
HResult=-2146232828
Message=Exception has been thrown by the target of an invocation.
Source=Act.Framework
StackTrace:
at Act.Framework.ActFramework.FailLogOn(Exception ex, TraceCategory tCat, TraceLevel tLevel)
at Act.Framework.ActFramework.LogOn(String userName, String password, String databaseType, String databaseHost, String databaseName, Boolean fireEvents, Boolean suppressTierCheck, Boolean suppressSchemaCheck, Boolean suppressLicenseCheck, Boolean allowTrialModeDeparture, LogonTrack tracklogon)
at Act.Framework.ActFramework.LogOn(String userName, String password, String databaseType, String databaseHost, String databaseName, Boolean fireEvents, LogonTrack tracklogon)
at Act.Framework.ActFramework.LogOn(String userName, String password, String databaseType, String databaseHost, String databaseName, LogonTrack tracklogon)
at Act.Framework.ActFramework.LogOn(String userName, String password, String databaseType, String databaseHost, String databaseName)
at Act.Framework.ActFramework.LogOn(String xmlPADFile, String userName, String password)
at ACAct.getContacts() in c:\Users\user\Documents\cloud\company\projects\project\ACAct.cs:line 128
at project._Default.Page_Load(Object sender, EventArgs e) in c:\Users\user\Documents\cloud\company\projects\project\Default.aspx.cs:line 16
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
System.TypeInitializationException
HResult=-2146233036
Message=The type initializer for 'Protexis.' threw an exception.
Source=Act.Shared.LicProvider
TypeName=Protexis.
StackTrace:
at Act.ProtexisProvider.ProtexisProvider.GetMachineCode(String serialNumber)
at Act.ProtexisProvider.ProtexisProvider.GetSerials(UInt32& totalUsers)
at Act.ProtexisProvider.ProtexisProvider.GetSerialNumbers()
at Act.ProtexisProvider.ProtexisProvider.get_SerialNumbers()
at Act.ProtexisProvider.ProtexisProvider..ctor()
InnerException:
System.ArgumentNullException
HResult=-2147467261
Message=Value cannot be null. Parameter name: path1
Source=mscorlib
ParamName=path1
StackTrace:
at System.IO.Path.Combine(String path1, String path2)
at Protexis...cctor()
InnerException: