80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Recently I was having a task to work with Word Automation. I have created word file and everything sucessfully. When I deployed the same to Server it failed and thown me below 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)).


After going into lots of research below solution worked for me.

<system.web>
<identity impersonate="true"
userName="Server User Name"
password="Server Password" />
</system.web>


Add Above to your webconfig file.

Reference: Muthukumar (
http://nadarmuthukumar.blogspot.in)
Hope you liked this and let me know your thoughts on post through your comments :)

0 comments:

Twitter Delicious Facebook Digg Stumbleupon Favorites More