|
|
 |
FN-FORUM: .NET Services on Win2003 - help help......
date posted 27th January 2005 18:29
I have a windows service written in c# that does a database query, if the
row returned contains a pdf file held in an Image field it then creates a
temporary file and it is then supposed to use an applicaton to convert the
pdf to text save it as another temporary file and then store the text file
alongside the pdf content in another Image field in SQL Server so Full Text
indexing can be used to search pdf files as well as word documents. I have
an application installed on the machine (pdf2txt) and it is in the PATH
variable; however, when the WIndows Service tried to execute the application
using System.Diagnostics.Process.Start("pdf2txt") all I keep getting is:
System.ComponentModel.Win32Exception: The system cannot find the file
specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo
startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(String fileName)
at HHNTWinService.PdfToText.convertToText(String tmpFileName1)
at HHNTWinService.PdfToText.aTimer_Elapsed(Object sender, ElapsedEventArgs
e)
It keeps complaining that it cannot find the applciation but it is in the
PATH variable and I can type it in to the command window and it works - I
have also tried the exact path to the application C:\\ etc and this does
not owrk either - has anybody got any ideas on this one???
Best Regards
John
|
 |
|