Jump to content

.net Doubt


Recommended Posts

Posted

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
Posted

 

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
 

Posted

is this exe ont he client side or server side..?   got some results  run exe clientside asp.net  ani search chesthe

Posted

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.
Posted

 

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());
}

Posted

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());
}

 

Posted

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 

Posted

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 

 

Posted

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..

Posted

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
 

Posted

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..

 

×
×
  • Create New...