2014-06-20 27 views
0

準備信息:
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);,代碼休息和我收到此錯誤。

嘗試:

  • pathuserpass在我的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: 
+0

你使用了一個調試器,並通過代碼? –

+0

由於該程序集被混淆,要了解具體情況,您需要聯繫其供應商。 –

回答

-1

檢查路徑,用戶和通過。如果一切正常,那麼您沒有所需的特權來調用ACTFM.LogOn((路徑),用戶,傳遞);.

您的Windows用戶不是管理員用戶。嘗試以管理員身份運行Visual Studio應用程序。 如果應用程序在調試模式下工作,但已編譯的應用程序(在服務器上發佈)收到此錯誤,則應用程序池不具有管理員身份。選擇適當的應用程序池,打開高級設置,將標識屬性更改爲管理員。

祝你好運。

+0

請添加更多信息(如示例代碼等),因爲此答案目前尚不清楚。謝謝! – cramopy

相關問題