failed due to the following error: 80070005 Access is denied. [Resolved]

Posted by Vuyiswamb under ASP.NET on 8/17/2011 | Points: 10 | Views : 10469 | Status : [Member] [MVP] [Administrator] | Replies : 1
Good Morining All

i have an asp.net hosted in IIS. that uses the Com library "Microsoft Word 14.0 Object Library". I am using this to convert the word Document to PDF, on my machine it works. I have Office 2010 on my machine and on the server we have installed Office 2011 too. but when i try to run my app on the server it gives me the Following error

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

i have given all the permissions to the aspnet user and other users full access but this does not work ,

Thanks

Thank you for posting at Dotnetfunda
[Administrator]



Responses

Posted by: Vuyiswamb on: 8/22/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down

Resolved
By default ASPNET user does not have access to the COM. so to resolve this i had to go and give permission to the user ASPNET on Control Panel-->Compenents-->Look for the Com Dll added and go to the security settings are add the user.

Thank you for posting at Dotnetfunda
[Administrator]

Vuyiswamb, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response