Using C# I have built an SOE that utilizes some Spatial Analyst classes to perform analysis on a raster layer. I have the ArcGIS Server Advanced license so Spatial Analyst functionality is already licensed.
The code works great on my Windows 7 machine.
Now I have deployed the same SOE to our Windows 2012 R2 production server. When the SOE is called it crashes as soon as it reaches the line to execute the Spatial Analyst analysis. I've added logging to the SOE, but it only states that the "Instance of the service 'Test.MapServer' crashed. Please see if an error report was generated".
Other things I've tried:
1. Disable anti-virus
2. Add the 'arcgis' user account to the C:\Windows\Temp directory with read/write permissions
3. Add the 'arcgis' user to the administrators group (for testing purposes)
4. Include the offending code in a try/catch block. This does not catch the error, the service just crashes.
Any other ideas on what might cause Spatial Analyst tools to crash on a Windows Server 2012 machine?