To fix this issue,i uninstall the servcie.And while installing the servcie again ,i have taken all the support libary that are used in project and project dll and exe. Then I install the servcie.
Then in windows servcie code, on service Start call,I have just called the methods that are present in my main BL layer.
So their i change the code like used thread and start the thread.
Ex.
Thread taskThread=null;
taskThread =new Thread(new ThreadStart(RunTask));
And the main BL function i called from RunTask() Method.This will solve my problem.
taskThread.Start();
No comments:
Post a Comment