0

Being thrown on this line:

// Run compiler
Process p = System.Diagnostics.Process.Start("java.exe", ex);
p.WaitForExit();

The error:

Error Message: Unknown error (0xfffffffe) Stack Trace: at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at Arcade.UploadFunctions.minifyC2Runtime(Int32 GameID) at Arcade.GameFunctions.createGame(Int32 CatID, String Name, String Description, String Instructions, Int32 UserId, Int32 Width, Int32 Height) at ArcadeSubmit.submitGame(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Everything works fine on the dev server, upload to live server and get this error.

If I catch the ex line just before it's executed then manually execute it in cmd.exe on the live server it runs fine.

Any ideas what this could be? I've got a hunch it's a permissions issue but I'm not sure.

Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
  • 1
    Permissions would be my first guess. But... Whats the value of ex? Have you tried with no arguments? I would expect java.exe to exit gracefully if nothing is on the command line. – rfmodulator Nov 23 '11 at 02:16
  • @rfmodulator, I caught the ex value before it runs and manually run it in the command window and it executes fine – Tom Gullen Nov 23 '11 at 02:17
  • @rfmodulator, when I pass `""` as the arguments it throws the same error. Thanks for helping btw :) – Tom Gullen Nov 23 '11 at 02:30

1 Answers1

2

It looks like a permission exception. Check this link out, you might get your answer there.

Extra link

One more

Good luck!

Community
  • 1
  • 1
Hanlet Escaño
  • 17,114
  • 8
  • 52
  • 75