web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AX client restarts while AX full compile/ CIL in AX 2012 R2

(0) ShareShare
ReportReport
Posted on by 1,318

Hi All,

1. AX client restarts if i do Compile(all tables/Classes) in X++/ Full application compile or Full CIL.

2. Also if i click on any form in System administration for e.g: Inbound port, checklists getting below error :

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: The pointer passed in as a String must not be in the bottom 64K of the process's address space.
   at System.String.CtorCharPtr(Char* ptr)
   at Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.Init(ClrBridgeImpl* , Char* appBase, Char* binPath, Char* vsAssembliesPath, Char* altBinPath, Boolean loadByReflection, UInt16 sessionId)
   at AxApplication.loadClrBridge(Char* appBase, Char* binPath, Char* vsAssembliesPath, IAxSession* axSession, Boolean isSingeltonSession, Boolean isDevelopmentMode, UInt16 sessionId, Boolean isServerSession)
   at Microsoft.Dynamics.Kernel.Client.AreaPageGroup.DoLink(LinkNode node)
   at Microsoft.Dynamics.Kernel.Client.AreaPageGroup.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Ax32
    Assembly Version: 6.2.0.0
    Win32 Version: 6.2.1000.1437
    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20AX/60/Client/Bin/Ax32.exe
----------------------------------------
msvcm90
    Assembly Version: 9.0.30729.6161
    Win32 Version: 9.00.30729.6161
    CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57/msvcm90.dll
----------------------------------------
Microsoft.Dynamics.Kernel.Client
    Assembly Version: 6.2.0.0
    Win32 Version: 6.2.1000.1437
    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20AX/60/Client/Bin/Microsoft.Dynamics.Kernel.Client.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.Dynamics.Framework.UI.WinForms.Controls
    Assembly Version: 1.4.0.0
    Win32 Version: 1.4.11343.17
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Dynamics.Framework.UI.WinForms.Controls/1.4.0.0__31bf3856ad364e35/Microsoft.Dynamics.Framework.UI.WinForms.Controls.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.Dynamics.Framework.UI.Navigation
    Assembly Version: 1.4.0.0
    Win32 Version: 1.4.11064.00
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Dynamics.Framework.UI.Navigation/1.4.0.0__31bf3856ad364e35/Microsoft.Dynamics.Framework.UI.Navigation.dll
----------------------------------------
PresentationCore
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
WindowsBase
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
Microsoft.Dynamics.Kernel.Client.UI.WPF.Controls
    Assembly Version: 6.2.0.0
    Win32 Version: 6.2.158.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20AX/60/Client/Bin/Microsoft.Dynamics.Kernel.Client.UI.WPF.Controls.DLL
----------------------------------------
PresentationFramework
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
System.Xaml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
----------------------------------------
PresentationFramework.Classic
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.classic/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.classic.dll
----------------------------------------
PresentationFramework-SystemXml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll
----------------------------------------
Microsoft.Dynamics.DynamicProxy
    Assembly Version: 6.2.0.0
    Win32 Version: 6.2.158.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20AX/60/Client/Bin/Microsoft.Dynamics.DynamicProxy.DLL
----------------------------------------
Microsoft.Dynamics.Xml
    Assembly Version: 6.2.0.0
    Win32 Version: 6.2.158.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20AX/60/Client/Bin/Microsoft.Dynamics.Xml.dll
----------------------------------------
Microsoft.Dynamics.AX.ManagedInterop
    Assembly Version: 6.2.0.0
    Win32 Version: 6.2.3000.4604
    CodeBase: file:///C:/Windows/assembly/GAC_32/Microsoft.Dynamics.AX.ManagedInterop/6.2.0.0__31bf3856ad364e35/Microsoft.Dynamics.AX.ManagedInterop.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


3.  I have enable Hot-swapping in AX server config because i got error : 'CLRObject could not be created'

Please suggest

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Sathish,

    Can you find some additional information? E.g. the compilation log, windows event logs on the AOS? Have you also tried to use AXbuild.exe?

    Is the error coming while doing the x++ compilation, the CIL build or both?

    If it is during CIL, check if the x++ compilation did not have any errors.

  • Sathish_Chinnappan Profile Picture
    1,318 on at

    Windows Log:

    Faulting application name: Ax32.exe, version: 6.2.1000.1437, time stamp: 0x51c95f38

    Faulting module name: RPCRT4.dll, version: 6.1.7601.23677, time stamp: 0x589c957a

    Exception code: 0xc0000005

    Fault offset: 0x0002c3cb

    Faulting process id: 0x18f0

    Faulting application start time: 0x01d4c242aa10b644

    Faulting application path: C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin\Ax32.exe

    Faulting module path: C:\Windows\syswow64\RPCRT4.dll

    Report Id: 210711b0-2e37-11e9-b298-00155d16cc05

  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Sathish,

    Are you able to answer all my questions?

  • Sathish_Chinnappan Profile Picture
    1,318 on at

    Let me explain what exactly i have done:

    There is test environment which already working fine where AOS, SQL are in same server. Due to performance issue we moved the SQL to different server and we have uninstalled the AX in existing machine and re-installed in the same machine pointing the database to the different server where the SQL installed newly.

    Also restored latest Live database in newly SQL test server.

    After installing getting CLR object could not be created while opening AX, also if i try to open any form also getting same error, still i continue to put full application compilation & Full CIL - both operation stopping the AOS service. Then i have enabled Hot-Swapping in AX server configuration after CLR error not came and tried to put full application Compilation/ Full CIL both the case client crashes and closed.

    I have tried copying Client BIN from live to test still same error, also tried copying server BIN folder and deleted .AUC and KTI files for all the users.

  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Sathish,

    Sorry for late responding. For AX2012, there are 2 databases; a business and model database. Did you copy both to the Test environment? If not, there might be an issue with environment specific element IDs.

  • Ansar Basha Profile Picture
    1,584 on at

    Hi Sathish,

    I'm facing same issue on server as well as for all the clients, could you pls. Share how you solved it.

    Appreciate your help.

    Thanks & Regards,

    Ansar Basha.S

  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Hi Ansar,

    is there any information that you would like to share with us? Anything that you think could be relevant?

    You found this discussion and have seen what questions have been asked and what details have been shared. I recommend you go through all messages in this discussion once more and evaluate if you can also provide similar info to us. This will ensure that others can help you in best possible way.

    Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Sukrut Parab Profile Picture

Sukrut Parab 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans