- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Autodesk and forum
I am attempting to retrieve the thumbnails for part files like this ...
// use ApprenticeServerComponent to run In-Process to obtain thumbnail oApprenticeServerDoc = oApprenticeApp.Open(component.LocalFilenameAndPath); // obtain the thumbnail image Console.WriteLine("attempting to get thumbnail for " + oApprenticeServerDoc.FullFileName); stdole.IPictureDisp thumbnailIPD = oApprenticeServerDoc.Thumbnail;
The final line fails when running in the WindowsService. ...
The above code sits in a method that I use in a Standard Windows Forms App exe, and also in my process that is started and run as a windows service.
It works well for the WindowsFormsApp.
The final line above fails when running in the WindowsService with the exception ...
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at Inventor.ApprenticeServerDocument.get_Thumbnail()
Is there an issue with running ApprenticeServer as a Windows Service --- can anyone confirm whether this is the likely cause of the above failure??
Regards
Dan
Atkins Consultants Ltd UK
+19,000 staff (M&E, Civils, Structural, Geotechnical, Environmental and more)
Solved! Go to Solution.