Windows Service is not Working.
Posted
by prateeksaluja20
on Stack Overflow
See other posts from Stack Overflow
or by prateeksaluja20
Published on 2010-04-05T07:40:31Z
Indexed on
2010/04/05
7:43 UTC
Read the original article
Hit count: 151
c#
I had made a windows service in visual studio 2008 in C#.inside the service i had written only single line code
try
{
System.Diagnostics.Process.Start(@"E:\Users\Sk\Desktop\category.txt");
}
catch { }
then i add the project insatller & change the serviceProcessInstaller1 Account proerty as local system Also change the serviceInstaller1 start type proerty as Automatic. then i build the project.it was succesfull. after that i add another project that was setup project.i had added pprimary project output & i had added the custom action as "Primary output from DemoWindowsService (Active)".then buil the setup.setup was build sucessfully.then i install the setup & then went to services start the service.service stated properly butit was not performing the task. i had checked the path is correct & also i tried to do
System.Diagnostics.Process.Start(@"E:\Windows\system32\notepad.exe") but still result is same.i tried alot but not getting the ans soleasse help me to solve this problem.
© Stack Overflow or respective owner