Reputation: 223
I am creating a simple asp.net web site that use office 2007/2010 automation .. when i published the website on the iis 7 on my local machine (window 7) have an exception
Retrieving the COM class factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error:
80080005 Server execution failed (Exception from HRESULT: 0x80080005
(CO_E_SERVER_EXEC_FAILURE)).
I have searched for this exception and i found that i have to set some permissions to office in DCOM Config.
I have opened the component services and opened DCOM Config, but i have not found Microsoft Word Document i have found only office word 97 - 2003.
can any one tell me how to solve this problem.
Upvotes: 13
Views: 34822
Reputation: 1072
Yes, office word 97 - 2003 is a right name of DCOM document (resp. application) Word 2007 or 2010. Don't ask me why...
Where could be the trouble?
The user must have access to the desktop. If Word is called from ASP.NET, it probably doesn't have this access. So set an account specifically in dcomcnfg.exe. Don't use The launching user (it is an IIS identity, it doesn't have its own desktop) and don't use The interactive user (it only works if some user is logged in).
In my solution I have set:
Another way can be possible, but this way should work.
Upvotes: 10
Reputation: 363
Found the answer here: DCOM Failure of Office Automation
If you are running a 64-bit server with 32-bit Office, you may have trouble finding this DCOM setting. You will need to run "MMC -32" from the command prompt to launch 32-bit MMC and then add 'Component Services' from the 'File > Add / Remove Snap-ins' menu.
Upvotes: 24