Start Process Problem
GreatScott000
Member Posts: 40
I am having a problem with NAV 2009 SP1 code that works on Server 2008 R2 and doesn't work on Server 2012 SP1. I am trying to run a program (Jet's Autopilot.exe) from a .NET Process variable. The code is this:
I get this error:
As I said this code works on Server 2008 R2 but not Server 2012 SP1. It the same NAV executables on both servers (same client, they are just just transitioning to new server), I am using a copy of the NAV database. If I use the command line and arguments passed to the function in a CMD window (non-administrator) the command works when logged in as the service account.
I have done a Google search on the error and most of the pages relate this being a permissions error and being UAC related. I have tried the suggested fixes for that
I have granted the service account full control on all folders that it is accessing ("JetReports", "60\Service", input/output folders for the Jet Report).
Any suggestions?
Global Variables Name DataType Subtype Length ShellProcess DotNet 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Diagnostics.Process ShellStartInfo DotNet 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Diagnostics.ProcessStartInfo Procedure RunReport() ShellProcess := ShellProcess.Process(); ShellProcess.StartInfo := ShellStartInfo.ProcessStartInfo(CommandLine, Arguments); ShellProcess.Start(); ShellProcess.Dispose();
I get this error:
Microsoft Dynamics NAV
This message is for C/AL programmers: The call to member Start failed: Unknown error (0xfffffffe).
OK
As I said this code works on Server 2008 R2 but not Server 2012 SP1. It the same NAV executables on both servers (same client, they are just just transitioning to new server), I am using a copy of the NAV database. If I use the command line and arguments passed to the function in a CMD window (non-administrator) the command works when logged in as the service account.
I have done a Google search on the error and most of the pages relate this being a permissions error and being UAC related. I have tried the suggested fixes for that
StartInfo.Verb = 'runas'and I get the same error.
I have granted the service account full control on all folders that it is accessing ("JetReports", "60\Service", input/output folders for the Jet Report).
Any suggestions?
0
Comments
-
Yes the .NET 3.5 is installed (and 4.0). The Codeunit this is in compiles without error. I tried to find a 4.0 version of the System.Diagnostics.Process class but could not find a 4.0 library for it.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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