azure - Application crashes when run from C# Process in contrast to from command window -


i running azure cloud service processes data native compiled executable.

if run following in command prompt on target machine:

c:\algorithms\sinnovations.algorithms\sinnovations.algorithms.rawconverter.1.0.0-pre-20140323\nikonrawreader.exe  dsc_028.nef 

then runs no problems.

if do:

      processstartinfo procstartinfo =       new processstartinfo("cmd",@"/c c:\algorithms\sinnovations.algorithms\sinnovations.algorithms.rawconverter.1.0.0-pre-20140323\nikonrawreader.exe  dsc_028.nef");          procstartinfo.redirectstandardoutput = true;         procstartinfo.useshellexecute = false;         procstartinfo.createnowindow = true;         procstartinfo.workingdirectory = workingdirectory;          using (process proc = new process())         {             proc.startinfo = procstartinfo;             proc.start();              var text = await proc.standardoutput.readtoendasync();             trace.traceinformation(text);             proc.waitforexit((int)timespan.fromminutes(5).totalmilliseconds);             if (proc.exitcode != 0)             {                 throw new runalgorithmexception("process exit code not 0");             }         } 

then application dont run completion.

i used processmonitor verify call process looks alike:

parent pid: 3960, command line: c:\algorithms\sinnovations.algorithms\sinnovations.algorithms.rawconverter.1.0.0-pre-20140323\nikonrawreader.exe  dsc_028.nef,  current directory: c:\tasks\f48914e4-19cf-4020-a7c7-b3150cea0164\,  environment:      =c:=c:\tasks\f48914e4-19cf-4020-a7c7-b3150cea0164     =d:=d:\windows\system32     =exitcode=00000000     allusersprofile=d:\programdata     appdata=d:\users\pksorensen\appdata\roaming     clientname=laptop-pc     commonprogramfiles=d:\program files\common files     commonprogramfiles(x86)=d:\program files (x86)\common files     commonprogramw6432=d:\program files\common files     computername=rd00155d871170     comspec=d:\windows\system32\cmd.exe     fp_no_host_check=no     homedrive=d:     homepath=\users\pksorensen     localappdata=d:\users\pksorensen\appdata\local     logonserver=\\rd00155d871170     number_of_processors=1     os=windows_nt     path=d:\windows\system32;d:\windows;d:\windows\system32\wbem;d:\windows\system32\windowspowershell\v1.0\     pathext=.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc     processor_architecture=amd64     processor_identifier=amd64 family 16 model 8 stepping 1, authenticamd     processor_level=16     processor_revision=0801     programdata=d:\programdata     programfiles=d:\program files     programfiles(x86)=d:\program files (x86)     programw6432=d:\program files     prompt=$p$g     psmodulepath=d:\windows\system32\windowspowershell\v1.0\modules\;d:\program files\microsoft security client\mpprovider\     public=d:\users\public     sessionname=rdp-tcp#1     systemdrive=d:     systemroot=d:\windows     temp=d:\users\pksore~1\appdata\local\temp\2     tmp=d:\users\pksore~1\appdata\local\temp\2     userdomain=rd00155d871170     userdomain_roamingprofile=rd00155d871170     username=pksorensen     userprofile=d:\users\pksorensen     windir=d:\windows   parent pid: 2748, command line: c:\algorithms\sinnovations.algorithms\sinnovations.algorithms.rawconverter.1.0.0-pre-20140323\nikonrawreader.exe   dsc_1344.nef,      current directory: c:\tasks\6a94a8f0-82b6-4843-936f-171ff553b949\,      environment:      =c:=c:\tasks\6a94a8f0-82b6-4843-936f-171ff553b949     allusersprofile=d:\programdata     appcmd=d:\windows\system32\inetsrv\appcmd.exe     appdata=d:\windows\system32\config\systemprofile\appdata\roaming     cleanupfirewallonrolerestart=true     commonprogramfiles=d:\program files\common files     commonprogramfiles(x86)=d:\program files (x86)\common files     commonprogramw6432=d:\program files\common files     computername=rd00155d871170     comspec=d:\windows\system32\cmd.exe     diagnosticstore=c:\resources\directory\33da8f21b4294080ab4d59d2147b3e72.ascend.algorithms.azurehost.diagnosticstore\     fp_no_host_check=no     localappdata=d:\windows\system32\config\systemprofile\appdata\local     number_of_processors=1     os=windows_nt     path=d:\windows\system32;d:\windows;d:\windows\system32\wbem;d:\windows\system32\windowspowershell\v1.0\;;f:\base\x64;f:\base\x86;f:\diagnostics\x64;;d:\packages\guestagent\guestagent\legacyruntime\x64;d:\packages\guestagent\guestagent\legacyruntime\x86;d:\windows\system32;d:\windows;d:\windows\system32\wbem;d:\windows\system32\windowspowershell\v1.0\;;f:\base\x64;f:\base\x86;f:\diagnostics\x64;;d:\packages\guestagent\guestagent\legacyruntime\x64;d:\packages\guestagent\guestagent\legacyruntime\x86;d:\windows\system32;d:\windows;d:\windows\system32\wbem;d:\windows\system32\windowspowershell\v1.0\;;f:\base\x64;f:\base\x86;f:\diagnostics\x64;;d:\packages\guestagent\guestagent\legacyruntime\x64;d:\packages\guestagent\guestagent\legacyruntime\x86;d:\windows\system32;d:\windows;d:\windows\system32\wbem;d:\windows\system32\windowspowershell\v1.0\;;f:\base\x64;f:\base\x86;f:\diagnostics\x64;;d:\packages\guestagent\guestagent\legacyruntime\x64;d:\packages\guestagent\guestagent\legacyruntime\x86;;c:\dependency-packages\opencv.3.0.0;c:\dependency-packages\libraw.0.16.0     pathext=.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc;.cpl     processor_architecture=amd64     processor_identifier=amd64 family 16 model 8 stepping 1, authenticamd     processor_level=16     processor_revision=0801     programdata=d:\programdata     programfiles=d:\program files     programfiles(x86)=d:\program files (x86)     programw6432=d:\program files     prompt=$p$g     psmodulepath=windowspowershell\modules;d:\program files\windowspowershell\modules;d:\windows\system32\windowspowershell\v1.0\modules\;d:\program files\microsoft security client\mpprovider\     public=d:\users\public     systemdrive=d:     systemroot=d:\windows     temp=c:\resources\temp\33da8f21b4294080ab4d59d2147b3e72.ascend.algorithms.azurehost\roletemp     tmp=c:\resources\temp\33da8f21b4294080ab4d59d2147b3e72.ascend.algorithms.azurehos 

where last stop in middle of processing.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -