M
Mrinal Kamboj
Hi ,
I am doing some experimentation , so i created a winform exe , that on
load event creates a NotifyIcon object for System Tray Icon . Now if i
run that application normally by VS.net or double click , it works as
expected and can be debugged .
Now , i created a Web App. containing a button , which invokes the
winform exe using System.Diagnostics --> Process class .
Something lke :
System.Diagnostics.Process.Start(<Filename>) ;
where <filename> is a local drive path , where Web App. is running ,
something like @"C:\MyApp\app.exe" , but in this case it gives an
exception -- "File not found" , i was not able to understand reason for
this , so i copied the same exe in the virtual directory folder for
webApp , something like "C:\inetpub\wwwroot\MyWebApp\app.exe" .
Now this thing is able to execute the application fine , Can anybody
guess the reason for the issue .
Now major problem comes , since it is executing an exe , so i did
expected as a normal double click behaviour , executing the load event
and creating an icon in system tray , but no such thing happened ,
apparentely , if seen in TaskManager , then a process is running and as
many number of times , i click the button on web form , a process gets
added , but no load event execution .
Now i added some MessageBox.show in load event to cross check , but they
didn't triggered , confirming no execution of event .
Can anybody help me in giving relevant info in this case . Also for
processes triggered through that web application , if i try killing from
task manager , it doesn't , saying "access denied" and there's no other
way except machine shutdown . In case you need some more information let
me know that .
thanks ,
Mrinal
I am doing some experimentation , so i created a winform exe , that on
load event creates a NotifyIcon object for System Tray Icon . Now if i
run that application normally by VS.net or double click , it works as
expected and can be debugged .
Now , i created a Web App. containing a button , which invokes the
winform exe using System.Diagnostics --> Process class .
Something lke :
System.Diagnostics.Process.Start(<Filename>) ;
where <filename> is a local drive path , where Web App. is running ,
something like @"C:\MyApp\app.exe" , but in this case it gives an
exception -- "File not found" , i was not able to understand reason for
this , so i copied the same exe in the virtual directory folder for
webApp , something like "C:\inetpub\wwwroot\MyWebApp\app.exe" .
Now this thing is able to execute the application fine , Can anybody
guess the reason for the issue .
Now major problem comes , since it is executing an exe , so i did
expected as a normal double click behaviour , executing the load event
and creating an icon in system tray , but no such thing happened ,
apparentely , if seen in TaskManager , then a process is running and as
many number of times , i click the button on web form , a process gets
added , but no load event execution .
Now i added some MessageBox.show in load event to cross check , but they
didn't triggered , confirming no execution of event .
Can anybody help me in giving relevant info in this case . Also for
processes triggered through that web application , if i try killing from
task manager , it doesn't , saying "access denied" and there's no other
way except machine shutdown . In case you need some more information let
me know that .
thanks ,
Mrinal