I am building a webservice to generate thumbnails for PDF files using the Windows API Code Pack, using the ShellObject.FromParsingName(filepath) and then accessing the Thumbnails property.
This works fine as long as it is hosted in a console application, but as soon as I host in a Windows Service or in IIS, it doesn't work anymore because in those contexts there is no Windows Shell.
Can I force the windows shell to be loaded in such a context? How can I solve this problem?