Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

NAV Automation Out Of Memory Exception

Posted on by 65

Hi,

We've developped an automation that allows us to generate resource dll's for .net programs using nav. The automation works fine when executed on any of our company's computers, but when it's executed by a customer, it doesn't work.

The automation calls resgen.exe and al.exe (Windows SDK) from the command line:

resgen.exe "C:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$NVT66TEST\users\GROUPINFRA\silfverj\TEMP\{D9ACD717-7A41-4A38-858E-DCDCD03F6467}\fi\RouteManager.fi.resx" "C:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$NVT66TEST\users\GROUPINFRA\silfverj\TEMP\{D9ACD717-7A41-4A38-858E-DCDCD03F6467}\fi\NaviTransBL.NaviTransResources.RouteManager.fi.resources"

al.exe /c:fi /out:"C:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$NVT66TEST\users\GROUPINFRA\silfverj\TEMP\{D9ACD717-7A41-4A38-858E-DCDCD03F6467}\fi\NaviTransNBL.resources.dll" /embed:"C:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$NVT66TEST\users\GROUPINFRA\silfverj\TEMP\{D9ACD717-7A41-4A38-858E-DCDCD03F6467}\fi\NaviTransBL.NaviTransResources.RouteManager.fi.resources"

The second command (al.exe) causes issues on the customer's computer, it throws the following error:

ALINK: fatal error AL1004: Unexpected common language runtime initialization error -- 'Not enough storage is available to complete this operation. '

The strange thing is, when I execute the exact same command using the command prompt, there are no problems at all. I guess it's got something to do with executing the command from a Dynamics Nav Automation.

Does anyone have an idea what's causing this error?

*This post is locked for comments

  • Scott Wright Profile Picture
    Scott Wright on at
    Re: NAV Automation Out Of Memory Exception

    Hi Daan Saveyn,

    Thank you for posting you issue.

    I haven't seen this issue before, but my first inclination is that it is permissions related as if the process doesn't have access to a directory it could throw an error that it doesn't have enough space and that you can run the command on its own. Maybe something with ACL.

    We've seen cases where running the NAV client by right clicking and selecting 'Run as administrator' has resolved installation issues. I'm not sure this is part of your automation or part of running it, but it might be something you want to look into.

    Hope this helps!

    Kindest Regards,

    Scott Wright

    Partner Online Technical Community
    ------------------------------------------------------------------------------------------
    This posting is provided "AS IS" with no warranties, and confers no right

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans