Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# “Protexis.׋”的类型初始值设定项引发异常。值不能为null。参数名称:path1_C#_Asp.net_.net_Act - Fatal编程技术网

C# “Protexis.׋”的类型初始值设定项引发异常。值不能为null。参数名称:path1

C# “Protexis.׋”的类型初始值设定项引发异常。值不能为null。参数名称:path1,c#,asp.net,.net,act,C#,Asp.net,.net,Act,初步资料: 行为版本:v16高级版 主机:Windows 7 SP1 IDE:VS 2013 问题: 查看此错误-“Protexis.׋”的类型初始值设定项引发异常。值不能为null。参数名称:path1,在尝试登录到我的act.pad文件时 详情: 似乎当我点击这个方法-ACTFM.LogOnpath,user,pass;,代码中断,我收到此错误 尝试: path、user和pass在my web.config中设置,然后传递到上述变量中。经过测试,我已经确认他们通过了测试。当我手动将实际值直

初步资料: 行为版本:v16高级版 主机:Windows 7 SP1 IDE:VS 2013

问题: 查看此错误-“Protexis.׋”的类型初始值设定项引发异常。值不能为null。参数名称:path1,在尝试登录到我的act.pad文件时

详情: 似乎当我点击这个方法-ACTFM.LogOnpath,user,pass;,代码中断,我收到此错误

尝试:

path、user和pass在my web.config中设置,然后传递到上述变量中。经过测试,我已经确认他们通过了测试。当我手动将实际值直接输入到方法中时,问题仍然存在。 我尝试了解决方案和它的变体。虽然我不完全确定我是否做得正确,也不介意进一步研究 我已经用提供的开发行为数据库和我的测试数据库尝试了这一点 以下是堆栈跟踪:


检查路径、用户和通行证。如果一切正常,那么您没有调用ACTFM.LogOnpath、user、pass;所需的权限

您的Windows用户不是管理员用户。尝试以管理员身份运行Visual Studio应用程序。 如果应用程序在调试模式下工作,但服务器上发布的已编译应用程序收到此错误,则应用程序池没有管理员标识。选择适当的应用程序池,打开高级设置,将identity属性更改为Administrator


祝你好运

您是否使用了调试器并逐步完成了代码?由于程序集被混淆,要了解情况,您需要联系其供应商。请添加更多信息,如示例代码等,因为这个答案目前还不太清楚。谢谢
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: