hello,
This is very challenging problem for me. basically my windows service monitor the application when my application hang due any reason then my service kill that process and application .Then restart the process and application again.
So for all this I made the service. Well now come on problem, plz come on controlpannel > Administrator Tool > Service >myservice.Th en right click on service and go on properties. There is a property on Log On
"Allow Service to interact with desktop". I check this property through coding using vb.net.
But there is a very big problem when I check this property through code using vb.net then my application is start working but after killing the application due to hang, service start the process on background means GUI of application do not display on user screen, process is running on background(we can see it on task bar of windows ) .
But when we do same things manually then every thing is running fine, service kill application or process properly and start it properly and proper GUI display on user screen m sending you the code also which I check this property.
Please help me to solve this problem.
OS-Windows XP 2.0,
.NET 2.0
--
----- With Regards ----
Pankaj Lohani
Dot Net Consaltant
Chandigarh(Indi a)
+919888273250
This is very challenging problem for me. basically my windows service monitor the application when my application hang due any reason then my service kill that process and application .Then restart the process and application again.
So for all this I made the service. Well now come on problem, plz come on controlpannel > Administrator Tool > Service >myservice.Th en right click on service and go on properties. There is a property on Log On
"Allow Service to interact with desktop". I check this property through coding using vb.net.
But there is a very big problem when I check this property through code using vb.net then my application is start working but after killing the application due to hang, service start the process on background means GUI of application do not display on user screen, process is running on background(we can see it on task bar of windows ) .
But when we do same things manually then every thing is running fine, service kill application or process properly and start it properly and proper GUI display on user screen m sending you the code also which I check this property.
Please help me to solve this problem.
OS-Windows XP 2.0,
.NET 2.0
--
----- With Regards ----
Pankaj Lohani
Dot Net Consaltant
Chandigarh(Indi a)
+919888273250
Comment