Automation memory issue

daans
Member Posts: 21
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:
The second command (al.exe) causes issues on the customer's computer, it throws the following error:
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?
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?
0
Comments
-
May be there is not enough free space on some HDD...0
-
Yes, it have max temp file size - 2GB (32bit limit). If you need big temp table or you are generating big report, it could hit this limit.0
-
kine wrote:Yes, it have max temp file size - 2GB (32bit limit). If you need big temp table or you are generating big report, it could hit this limit.
I'm pretty sure I'm nowhere near that limit. The file I'm trying to convert is only a couple of Kb in size. I also thought there might be an infinite loop or something in the code that caused the computer to run out of memory, but that also isn't the case.0 -
I've managed to resolve the problem: it was caused by the service tier having insufficiënt rights (it was running under the "Network Service"-account).0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions