準備信息:
ACT!版本:V16高級
主機:Windows 7的SP1
IDE:VS 2013'Protexis。'的類型初始值設定項引發異常。值不能爲空。參數名稱:path1
問題:
評論這個錯誤 - "The type initializer for 'Protexis.' threw an exception. Value cannot be null. Parameter name: path1"
,在試圖登錄到我的行爲.pad文件。
詳情:
看來,當我打這個方法 - ACTFM.LogOn((path), user, pass);
,代碼休息和我收到此錯誤。
嘗試:
path
,user
和pass
在我的web.config設置,然後加入到說的變量。經過測試,我已經證實他們正在通過。當我手動輸入實際值(直接進入方法)時,問題依然存在。- 我曾嘗試this解決方案和它的變化。雖然我不能完全肯定,如果我這樣做正確,不會介意尋找到這進一步
- 我有一個提供發展ACT DB以及嘗試此我對測試DB
這裏是堆棧跟蹤:
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:
你使用了一個調試器,並通過代碼? –
由於該程序集被混淆,要了解具體情況,您需要聯繫其供應商。 –