Author: simsen | Posted on: 3/10/2009 2:35:26 AM | Views : 590

Hi,
I have button in my program, where I access the browsers scanner to make the user select which scanner and then scan a file. The code also make the temp file to a image file (jpg).
It runs perfect on my developer mashine. But when I publish the code to a web server (Win2003 server) the following error appears:
System.UnauthorizedAccessException: Creating an instance of the COM component with CLSID {4EC4272E-2E6F-4EEB-91D0-EBC4D58E8DEE} from the IClassFactory failed due to the following error: 80070005.
I have cheked that the NT AUTHORITY\NETWORK SERVICE user have the correct privligies to run the VIA application (I had also an UnauthorizedAccessException when calling Excel - I fixed it giving the Excel the right priviliges).
The error appears in the first line of code:
//COM instance
Go to the complete details ...