I developed a website that allows users to upload office documents, and then uses the office object model to convert the document into an HTML file, which it then displays in an iFrame.
Of course, I included links to Office.interop.word, and the site works fine on my development machine. When I uploaded it to my production server, the site functions normally until I try to upload the document. At first, I got a similar error, indicating that "the COM object is not registered." I realized that Word was not installed on my production server. So I installed the word and now that the server is trying to access the word object model. I get the following error:
Retrieving the factory COM class for a component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
I searched the registry for the corresponding CLSID and found the appropriate folder. I added full control over the IUSR_ account and, due to a constant error, I eventually added full control to "everyone" and ensured these rights inherited to the rest of the folder. Then I added full control of IUSR_ and again eventually added complete control of “everyone” to my Microsoft Office folder.
I do not know what other permissions to provide, and where in order for this "Access Denied" error to go away. I have to provide them in the wrong place, because I know that I cannot be more believable than "All" "Full control".
Can anyone shed some light?
Camenwolf Aug 13 '10 at 13:10 2010-08-13 13:10
source share