Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Process starts but does not work
Message
 
 
À
09/05/2016 03:01:43
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01636013
Message ID:
01636032
Vues:
43
>>Hi,
>>
>>I have code in my ASP.NET that calls a VFP9 program that prints a one-page report. This program works on my computer and works on one customer's server. The code is as follows:
>>
>>Process.Start( "c:\\appfolder\\printorder.exe", nOrderNumber.ToString()));
>>
>>
>>
>>But when I introduced this change to one other customer, it does not work. I see on this customer's server in Task Manager that the process Printorder.exe starts every time I run the application. But it does not do anything. As if it hangs on instantiating or something. I placed some "test messages" in the Printorder.exe but they are never fired. And after I close all these processes in the Task Manager and run the ASP.NET app again (which starts the printorder.exe), the server appears in the Task Manager but nothing fires.
>>
>>What could be stopping this process on "this" customer's server?
>
>Presumably some difference in configuration/permissions. Don't know if this might give some clue :
>
>https://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.errordialog(v=vs.110).aspx

I will try to call the Process differently, using UseShellExecute, as the article you linked suggested. I also plan to try to place the program PrintOrder.exe right in the BIN folder of the ASP.NET application. Just to see if it makes a difference.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform