Product Licensing in Scheduled Batch

Discussion created by AprilNunn on Jan 4, 2013
Latest reply on May 20, 2014 by blomm
I have an application that selects records from a SQL Server table and geocodes the address, returning the XYs and populating fields in the row. This app was originally written for ArcGIS 9.3, later modified for 10. It was called from either a scheduled task (Server 2008) or xp_cmdshell in SQL Server (2008r2) and worked perfectly.

But after moving to 10.1 the application no longer works from batch. It runs fine in a command window logged into the server as any user, including the account used for tasks/jobs. It stops when attempting to bind the license with the following error in the Event Log. Any ideas?

[INDENT]Faulting application name: geocode.exe, version:, time stamp: 0x50e6f6bf
Faulting module name: AfCore_libFNP.dll_unloaded, version:, time stamp: 0x4f920360
Exception code: 0xc0000005
Fault offset: 0x5963e9b0
Faulting process id: 0x9230
Faulting application start time: 0x01cdea912fe817ed
Faulting application path: C:\tasks\geocode.exe
Faulting module path: AfCore_libFNP.dll
Report Id: 6e229a8d-5684-11e2-9618-78e7d1ec71be[/INDENT]