Yes, I know MS does not like this nor supports it but...I would like to do so.
In user mode my code works fine, but when running as a windows service the following line of code returns null. How determine the error that causing it to return as null?
Word.Document newDocument = wordApplication.Documents.Open(tempFile);
I am hoping to load up a document and use this to convert it to text for downstream parsing. But this returns null. No exception. And I cannot find any errors in the event log.
[Update] I put the debug console on and it says "Failed to Resolve Assembly" but I have noticed that in the user mode and it does not seem to stop it.
In user mode my code works fine, but when running as a windows service the following line of code returns null. How determine the error that causing it to return as null?
Word.Document newDocument = wordApplication.Documents.Open(tempFile);
I am hoping to load up a document and use this to convert it to text for downstream parsing. But this returns null. No exception. And I cannot find any errors in the event log.
[Update] I put the debug console on and it says "Failed to Resolve Assembly" but I have noticed that in the user mode and it does not seem to stop it.