1

さまざまなAOSに接続するには、さまざまな構成でMS DynamicsAX2009クライアントを起動する必要があります。
これを実現するために、クライアント構成をaxcファイルにエクスポートしました。これは非常にうまく機能します。
このファイルをネットワーク内のすべてのクライアントで共有したいのですが、一部のクライアントでは機能しません。これは、なんらかの面白い理由で、DynamicsAXバイナリへのパスがクライアント構成ファイルにハードコードされているためです。したがって、あるコンピューターではAXクライアントはC:\ Program Files(x86)\ Microsoft Dynamics AX \ 50 \ Client \ Binにインストールされ、次のコンピューターではC:\ Program Files \ Microsoft Dynamics AX \ 50 \ Client\Binにインストールされます。 axcのパスが実際のパスと異なるため、ファイルは機能しません。

すべてのクライアントコンピューターで動作するaxcファイルを作成して、共有構成ファイルを使用できるようにするにはどうすればよいですか?

4

6 に答える 6

3

私が見つけた唯一の回避策は、クライアントをプログラムファイルにインストールするのではなく、c:\axなどのカスタムパスですべてのコンピューターにインストールすることです。

ぶさいくな。マイクロソフトが将来のバージョンでこれを修正することを本当に望んでいます。

于 2010-02-03T13:37:20.837 に答える
3

NTFSのジャンクションポイントを使用して、32ビットクライアントの「プログラムファイル(x86)」を「プログラムファイル」にポイントできます。ジャンクションポイントは、基本的にWindowsのUNIXシンボリックリンクに相当します。

于 2010-02-04T15:08:29.050 に答える
2

レジストリキーをクライアントに展開することができた場合、解決策は次のようになります。

  1. 問題のAX構成をレジストリからエクスポートし(通常、HKCU \ Software \ Microsoft \ Dynamics \ 5.0 \ Configurationにあります)、ターゲットコンピューターにインポートします(ドメインログオン中など)。
  2. Ax32アプリケーションへのlnkを作成し、コマンドラインパラメーターを指定します。-regconfig= <typeTheConfigNameHere>
    例:Ax32.exe -regconfig = LIVE


これを入力すると、このソリューションに追加の問題が発生します。これもこれらのパスです...ただし、2つのバージョンのlnkファイル(32ビット環境用と64ビット環境用)の作成と保守は簡単です。 。そしてレジストリは同じです。それが役に立てば幸い!

于 2009-06-09T10:06:44.900 に答える
2

私は開発環境のセットアップの次の構造を使用していますが、これがあなたが探しているものだと思います。

以下は例です。


サーバー名: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にAX2009クライアントをインストールします。インストール中に、AOSを指定するように求められます-任意の値を指定します。このローカルにインストールされたAX2009クライアントは、GACにないいくつかの追加のアセンブリを使用するため、必要でした。

最後に-AXを起動する方法は?*.batファイルを実行するだけです。私が十分に明確であり、あなたが探していたものを理解したことを願っています))

于 2009-12-01T22:48:42.120 に答える
1

両方のパスを配置するだけです。

directory,Text,C:\Program Files\Microsoft Dynamics AX\50\Client
directory,Text,C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin
于 2009-05-25T12:13:34.950 に答える
1

どうですか

C:\ Program〜1 \ Microsoft Dynamics AX \ 50 \ Client

于 2009-05-25T13:16:36.697 に答える