Osama Bin Gandhi Posted January 15, 2015 Report Posted January 15, 2015 System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo.FileName = ExePath; p.StartInfo.Arguments = FilePath + Filename; p.Start(); p.WaitForExit(); idi im trying to invoke an exe file from the website(not windows).. debug mode lo working kani IIS lo not working... suggestions pls
Katti_Ramdas Posted January 15, 2015 Report Posted January 15, 2015 System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo.FileName = ExePath; p.StartInfo.Arguments = FilePath + Filename; p.Start(); p.WaitForExit(); idi im trying to invoke an exe file from the website(not windows).. debug mode lo working kani IIS lo not working... suggestions pls http://stackoverflow.com/questions/4679561/system-diagnostics-process-start-not-work-fom-an-iis
Osama Bin Gandhi Posted January 15, 2015 Author Report Posted January 15, 2015 tried didn't work... http://stackoverflow.com/questions/4679561/system-diagnostics-process-start-not-work-fom-an-iis
Katti_Ramdas Posted January 15, 2015 Report Posted January 15, 2015 http://stackoverflow.com/questions/11544897/permission-issue-running-exe-from-asp-net-web-application
puli_keka Posted January 15, 2015 Report Posted January 15, 2015 is this exe ont he client side or server side..? got some results run exe clientside asp.net ani search chesthe
Osama Bin Gandhi Posted January 15, 2015 Author Report Posted January 15, 2015 naaku strange ga ee exeception ostundi..im not using ystem.Windows.Forms.dll anywhere An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll Additional information: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Osama Bin Gandhi Posted January 15, 2015 Author Report Posted January 15, 2015 let me try this http://stackoverflow.com/questions/11544897/permission-issue-running-exe-from-asp-net-web-application
Katti_Ramdas Posted January 15, 2015 Report Posted January 15, 2015 naaku strange ga ee exeception ostundi..im not using ystem.Windows.Forms.dll anywhere An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll Additional information: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. inner exception emostundi chusava..adu cheppinatlu catch block add chey catch (InvalidOperationException exc){MessageBox.Show(exc.ToString());}
Osama Bin Gandhi Posted January 15, 2015 Author Report Posted January 15, 2015 MessageBox.Show(exc.ToString()); manam Web lo vaadalem...its only for windows.. inner exception emostundi chusava..adu cheppinatlu catch block add chey catch (InvalidOperationException exc){MessageBox.Show(exc.ToString());}
puli_keka Posted January 15, 2015 Report Posted January 15, 2015 seems like your exe is trying to open a window on server even command prompt if its a console app p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; p.StartInfo.UseShellExecute = True; give a try
Osama Bin Gandhi Posted January 15, 2015 Author Report Posted January 15, 2015 let me try seems like your exe is trying to open a window on server even command prompt if its a console app p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; p.StartInfo.UseShellExecute = True; give a try
Katti_Ramdas Posted January 15, 2015 Report Posted January 15, 2015 MessageBox.Show(exc.ToString()); manam Web lo vaadalem...its only for windows.. write some alert box or debug=false ani pettey web.config lo atleast stacktrace vastadi you can see what exactly happening. System.Windows.MessageBox.Show() try chey.. work avvakapovachu..
Katti_Ramdas Posted January 15, 2015 Report Posted January 15, 2015 seems like your exe is trying to open a window on server even command prompt if its a console app p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; p.StartInfo.UseShellExecute = True; give a try yup
Osama Bin Gandhi Posted January 15, 2015 Author Report Posted January 15, 2015 Stack trace lo kooda same excpetion ostundi.. write some alert box or debug=false ani pettey web.config lo atleast stacktrace vastadi you can see what exactly happening. System.Windows.MessageBox.Show() try chey.. work avvakapovachu..
Recommended Posts