【问题标题】:Dynamics AX 2009 Client config file start path problemDynamics AX 2009 客户端配置文件启动路径问题
【发布时间】:2010-10-28 17:03:26
【问题描述】:

我需要启动具有不同配置的 MS Dynamics AX 2009 客户端以连接到不同的 AOS。
为此,我将客户端配置导出到 axc 文件中,该文件运行良好。
现在我想为我们网络中的所有客户端共享这个文件,但它在某些客户端上不起作用,因为出于某种有趣的原因,Dynamics AX 二进制文件的路径被硬编码到客户端配置文件中。 因此,在一台计算机上,AX 客户端安装在 C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin 中,在下一台计算机上安装在 C:\Program Files\Microsoft Dynamics AX\50\Client\Bin 中,该文件不起作用,因为 axc 中的路径与实际路径不同。

如何创建可在每台客户端计算机上运行的 axc 文件,以便我可以使用共享配置文件?

【问题讨论】:

    标签: configuration client axapta dynamics-ax-2009


    【解决方案1】:

    我发现的唯一解决方法是在每台计算机上以某个自定义路径(例如 c:\ax)安装客户端,而不是将其安装到程序文件中。

    丑陋。我真的希望微软能在未来的某个版本中解决这个问题。

    【讨论】:

      【解决方案2】:

      您可以使用 NTFS 中的连接点将“Program Files (x86)”指向 32 位客户端上的“Program Files”。连接点基本上是 UNIX 符号链接的 Windows 等效项。

      【讨论】:

        【解决方案3】:

        如果您设法将注册表项部署到客户端,那么解决方案是这样的:

        1. 从注册表中导出有问题的 AX 配置(通常可以在 HKCU\Software\Microsoft\Dynamics\5.0\Configuration 中找到),在目标计算机上导入(在域登录期间等...)
        2. 为 Ax32 应用程序创建一个 lnk,并提供命令行参数:-regconfig=
          例如:Ax32.exe -regconfig=LIVE


        现在我输入了这个,我意识到这个解决方案的另一个问题,同样是那些路径......但是很容易创建和维护 lnk 文件的两个版本(一个用于 32,另一个用于64位环境)...和注册表是一样的。 希望对您有所帮助!

        【讨论】:

        • Jup,可悲的是,这只是同一问题的不同伪装。
        【解决方案4】:

        我正在使用我的开发环境设置的以下结构,我想这就是您要寻找的。

        以下是示例。


        服务器名称:SRV01 在该服务器上为 ex 创建文件夹。 AX5 并共享该文件夹。 文件夹结构:

        AX5
        --Application
        ----Appl
        ------Application_1 <- here is your *.aod file(-s)
        ------Application_2 <- here is your *.aod file(-s)
        
        --AXC
        ------Application_1
        -------- usr.axc configuration file <- save your configuration here
        -------- cus.axc configuration file <- save your configuration here
        ------Application_2 
        -------- *.axc configuration file <- save your configuration here
        
        --Client <- here is your Ax32.exe.
        --Server <- here is your Ax32Serv.exe
        --StartUp
        ------Application_1
        -------- usr.bat with one line. In this case this would be \\SRV01\AX5\Client\Bin\Ax32.exe \\SRV01\AX5\AXC\Application_1\usr.axc
        -------- cus.bat with one line. In this case this would be \\SRV01\AX5\Client\Bin\Ax32.exe \\SRV01\AX5\AXC\Application_1\cus.axc
        ------Application_2
        -------- *.bat with one line. In this case this would be \\SRV01\AX5\Client\Bin\Ax32.exe \\SRV01\AX5\AXC\Application_1\*.axc
        

        这里是 *.axc 文件的示例

        Configuration export file for Dynamics
        Formatversion: 1
        Configuration: usr.axc
            logdir,Text,C:\Users\Public\Microsoft\Dynamics Ax\Log\ <------------- change this but it's up to you
            company,Text,
            startupcmd,Text,
            extracmdline,Text,
            startupmsg,Text,
            aos2,Text,AOS_Instance_Name@SRV01:2712 <------------- change this
            aosencryption,Text,1
            xppdebug,Text,1
            globalbreakpoints,Int,1
            aol,Text,usr
            aolcode,Text,
            traceeventsenabled,Text,1
            tracestart,Int,0
            tracexppmethodcalldepth,Text,3
            client,Text,thin
            _clientmode,Int,0
            sql,Int,1
            native,Int,0
            hassqlpwd,Int,0
            localappldoc,Int,0
            localsysdoc,Int,0
            applshare,Int,1
            applexclusive,Int,0
            hascompwd,Int,0
            hasserveridletimeout,Int,0
            allowunauth,Int,0
            windowsauth,Text,1
            sqloraclefirstrowsfix,Text,0
            hasocipwd,Int,0
            dbunicodeenabled,Text,1
            cachesynctime,Text,
            caslevel,Text,enable
            language,Text,
            _clientadname,Text,
            aos,Text,
            application,Text,
            bindir,Text,\\SRV01\AX5\Client\Bin <------------- change this
            broadcast,Text,
            compwd,Text,
            connectionidletimeout,Text,
            createdsn,Text,
            database,Text,AXDB   <------------- change this
            datadir,Text,\\SRV01\AX5\Client\Data  <------------- change this
            dbcli,Text,odbc
            dbserver,Text,SRV01  <------------- change this
            directory,Text,\\SRV01\AX5\Client  <------------- change this
            dsn,Text,
            exposeserverprinters,Int,0
            fetchahead,Text,
            haswarnings,Int,0
            hint,Text,
            ignoredatasourceindex,Text,0
            installationlanguage,Text,EN-US
            internet,Text,SRV01
            log,Text,
            newconnectionretrycount,Text,
            newconnectionretrydelayms,Text,
            ociconnectservice,Text,1
            ocidbid,Text,
            ocihost,Text,
            ociservice,Text,
            ocitcpipport,Text,1521
            opencursors,Text,
            port,Text,
            preloadthresholdmsec,Text,
            preloadthresholdrecords,Text,
            querytimelimit,Text,
            retry,Text,
            serveridletimeout,Text,
            servermask,Text,2712  <------------- change this
            sqlbuffer,Text,
            sqlcomplexliterals,Text,1
            sqlformliterals,Text,1
            sqlpwd,Text,
            sqltrace,Text,0
            sqluser,Text,
            user,Text,
            warnings,Text,
            tracemaxfilesize,Text,10000
            tracebuffersize,Text,1024
            tracemaxbuffers,Text,120
            traceminbuffers,Text,30
            traceallowclient,Int,0
        

        重要提示:在每台客户端 PC 上安装 AX 2009 客户端。安装时,系统会要求您说明 AOS - 说明任何值。需要此本地安装的 AX 2009 客户端,因为它使用 GAC 中没有的几个附加程序集。

        最后——如何启动 AX?只需运行 *.bat 文件。 希望我足够清楚,希望我明白你在找什么))

        【讨论】:

          【解决方案5】:

          只要把两条路径都放上:

          directory,Text,C:\Program Files\Microsoft Dynamics AX\50\Client
          directory,Text,C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin
          

          【讨论】:

          • 好主意,但它不起作用 - 它只从配置文件中的第一个路径开始。
          【解决方案6】:

          怎么样

          C:\Progra~1\Microsoft Dynamics AX\50\Client

          【讨论】:

          • 这个 hack 不起作用,因为在 x64 系统上,路径“Program Files (x86)”通常是 Progra~2,而不是 Progra~1 - 它是创建的第二个路径,而不是第一个。
          • 请忽略这个程序~1 指向“程序文件”而不是“程序文件(x86)”
          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2013-02-24
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2013-10-17
          • 1970-01-01
          相关资源
          最近更新 更多