
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have some code running in a C# console application that has no problems until I install the application as a service and run it that way.
I am using "Method 2" from ModTheMachine's post here: http://modthemachine.typepad.com/my_weblog/2009/01/translating-files-with-the-api.html . I am trying to export a pdf using the method described. I have also tried Method 1 from this article, in which I am trying to export a pdf using the Inventor.Document.SaveAs([filename], true) command.
As stated, the code runs fine if I manually execute the application but if I install it as a Windows Service and start it, I get a failure on the SaveAs line. Everything else runs fine.
The Inventor.Application.Visible setting is false and the Inventor.Application.SilentOperation is true in both scenarios.
Here is the error I receive:
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
Solved! Go to Solution.