EDN Admin
Well-known member
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red Subject <span style="font-size:9pt; color:black; font-weight:normal : I have to run an exe file using service in both environment 32 bit and 64 bit.
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red IDE <span style="font-size:9pt; color:black; font-weight:normal : <span style="font-size:9pt; color:#006c31; font-weight:normal
Visual Studio 2008
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red OS <span style="font-size:9pt; color:black : <span style="font-size:9pt; color:#006c31
<span style="font-size:9pt; color:#006c31; font-weight:normal Window Server 2008 64 bit/ window XP sp2
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red Language <span style="font-size:9pt; color:black :
<span style="font-size:9pt; color:green; font-weight:normal Visual C#
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red Service Description <span style="font-size:9pt; color:black; font-weight:normal : <span style="font-size:9pt; color:#006c31; font-weight:normal
I created a window service name <span style="font-size:9pt; color:black; font-weight:normal DataInvokeService. <span style="font-size:9pt; color:#006c31; font-weight:normal
<span> This service is creating properly. This service invokes an exe file for starting the program.
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:#006c31 Services.msc --
<span style="font-size:9pt; color:black; font-weight:normal DataInvokeService <span style="font-size:9pt; color:#006c31; font-weight:normal -- Right Click â properties --
<span style="font-size:9pt; color:black; font-weight:normal "Crogram FilesText Extraction ManagerOmniDocsTEM.exe"
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:green; font-weight:normal This
<span style="font-size:9pt; font-weight:normal OmniDocsTEM.exe<span style="color:green uses an
OCRComServer.exe<span style="color:green Active X for invoking a method. If I directly click on exe file then it shows a popup
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red Description of pop up:
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:green <span> -------------------------------------
<span style="font-size:11pt; color:white; background:none repeat scroll 0% 0% blue Window Service Start Failure
<div style="padding:0in 0in 1pt
<p style="margin-bottom:0.0001pt; border:medium none; padding:0in <span style="font-size:11pt; color:white; background:none repeat scroll 0% 0% black; font-weight:normal Cannot start service from the command line or a debugger. A widows Service must
first be installed (using installutl.exe) and then started with the server Explorer, Windows Services Administrative tool or the NET START command
<p style="margin-bottom:0.0001pt; border:medium none; padding:0in <span style="font-size:11pt; color:white -----------------------------------
<p style="margin-bottom:0.0001pt; border:medium none; padding:0in <span style="font-size:9pt; color:green; font-weight:normal After that it runs properly and an OmniDocsTEM.exe shows in Task Manager. We are getting our desire result.
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red Already I have:
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red In window XP environment: <span style="font-size:9pt; color:black; font-weight:normal In window XP environment I installed service and after that I launched
OmniDocsTEM.exe exe file from service. This exe file is running properly and when I use OCRComServer.exe method .It gives correct result. That means OCRComServer.exe method is easily available to OmniDocsTEM.exe.
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:black; font-weight:normal In windows XP. It is running in both ways. Wheatear I clicked on exe file or run from service.
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red; font-weight:normal
<p style="margin:0in 0in 0.0001pt <span style="font-size:9pt; color:red Problem Which I am facing:
<p style="margin:0in 0in 0.0001pt <span style="font-size:10pt; color:black; font-weight:normal In 64 bit environment. Here when I run application using services.msc then it invokes OmniDocsTEM.exe properly. But it is not able to use OCRComServer.exe
method.
<p style="margin:0in 0in 0.0001pt <span style="font-size:10pt; color:black; font-weight:normal
<p style="margin:0in 0in 0.0001pt <span style="font-size:10pt; color:black; font-weight:normal While
<p style="margin-bottom:0.0001pt <span style="font-size:10pt; color:black; font-weight:normal When we are clicking on exe directly then it is working properly after showing the popup even it used OCRComServer.exe file method properly <span style="font-size:10pt; color:#c00000 .
That means <span style="font-size:10pt; color:black
<span style="font-size:10pt; color:green OCRComServer.exe is correctly compiled for 64 bit environment.
<p style="margin-bottom:0.0001pt <span style="font-size:10pt; color:red Then question is why OCRComServer.exe method is not accessible with OmniDocsTEM.exe in 64 bit environment using services <span style="font-size:9pt; color:red .
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:black; font-weight:normal <span> Is there any configuration which I am missing?
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:black; font-weight:normal Please help me .I will be thankful to you.
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:black
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:black
<p style="margin-bottom:0.0001pt <span style="font-size:9pt
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:green
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:black
View the full article
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red IDE <span style="font-size:9pt; color:black; font-weight:normal : <span style="font-size:9pt; color:#006c31; font-weight:normal
Visual Studio 2008
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red OS <span style="font-size:9pt; color:black : <span style="font-size:9pt; color:#006c31
<span style="font-size:9pt; color:#006c31; font-weight:normal Window Server 2008 64 bit/ window XP sp2
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red Language <span style="font-size:9pt; color:black :
<span style="font-size:9pt; color:green; font-weight:normal Visual C#
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red Service Description <span style="font-size:9pt; color:black; font-weight:normal : <span style="font-size:9pt; color:#006c31; font-weight:normal
I created a window service name <span style="font-size:9pt; color:black; font-weight:normal DataInvokeService. <span style="font-size:9pt; color:#006c31; font-weight:normal
<span> This service is creating properly. This service invokes an exe file for starting the program.
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:#006c31 Services.msc --
<span style="font-size:9pt; color:black; font-weight:normal DataInvokeService <span style="font-size:9pt; color:#006c31; font-weight:normal -- Right Click â properties --
<span style="font-size:9pt; color:black; font-weight:normal "Crogram FilesText Extraction ManagerOmniDocsTEM.exe"
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:green; font-weight:normal This
<span style="font-size:9pt; font-weight:normal OmniDocsTEM.exe<span style="color:green uses an
OCRComServer.exe<span style="color:green Active X for invoking a method. If I directly click on exe file then it shows a popup
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red Description of pop up:
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:green <span> -------------------------------------
<span style="font-size:11pt; color:white; background:none repeat scroll 0% 0% blue Window Service Start Failure
<div style="padding:0in 0in 1pt
<p style="margin-bottom:0.0001pt; border:medium none; padding:0in <span style="font-size:11pt; color:white; background:none repeat scroll 0% 0% black; font-weight:normal Cannot start service from the command line or a debugger. A widows Service must
first be installed (using installutl.exe) and then started with the server Explorer, Windows Services Administrative tool or the NET START command
<p style="margin-bottom:0.0001pt; border:medium none; padding:0in <span style="font-size:11pt; color:white -----------------------------------
<p style="margin-bottom:0.0001pt; border:medium none; padding:0in <span style="font-size:9pt; color:green; font-weight:normal After that it runs properly and an OmniDocsTEM.exe shows in Task Manager. We are getting our desire result.
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red Already I have:
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red In window XP environment: <span style="font-size:9pt; color:black; font-weight:normal In window XP environment I installed service and after that I launched
OmniDocsTEM.exe exe file from service. This exe file is running properly and when I use OCRComServer.exe method .It gives correct result. That means OCRComServer.exe method is easily available to OmniDocsTEM.exe.
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:black; font-weight:normal In windows XP. It is running in both ways. Wheatear I clicked on exe file or run from service.
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:red; font-weight:normal
<p style="margin:0in 0in 0.0001pt <span style="font-size:9pt; color:red Problem Which I am facing:
<p style="margin:0in 0in 0.0001pt <span style="font-size:10pt; color:black; font-weight:normal In 64 bit environment. Here when I run application using services.msc then it invokes OmniDocsTEM.exe properly. But it is not able to use OCRComServer.exe
method.
<p style="margin:0in 0in 0.0001pt <span style="font-size:10pt; color:black; font-weight:normal
<p style="margin:0in 0in 0.0001pt <span style="font-size:10pt; color:black; font-weight:normal While
<p style="margin-bottom:0.0001pt <span style="font-size:10pt; color:black; font-weight:normal When we are clicking on exe directly then it is working properly after showing the popup even it used OCRComServer.exe file method properly <span style="font-size:10pt; color:#c00000 .
That means <span style="font-size:10pt; color:black
<span style="font-size:10pt; color:green OCRComServer.exe is correctly compiled for 64 bit environment.
<p style="margin-bottom:0.0001pt <span style="font-size:10pt; color:red Then question is why OCRComServer.exe method is not accessible with OmniDocsTEM.exe in 64 bit environment using services <span style="font-size:9pt; color:red .
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:black; font-weight:normal <span> Is there any configuration which I am missing?
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:black; font-weight:normal Please help me .I will be thankful to you.
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:black
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:black
<p style="margin-bottom:0.0001pt <span style="font-size:9pt
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:green
<p style="margin-bottom:0.0001pt <span style="font-size:9pt; color:black
View the full article