I have used MS word 2010 compoent in my asp.net application and that is running fine in my location system,
But when I am trying to run this application in server it gives 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)).
So, I have installed MS word 2010 in my server and then go to dcomcnfg for set permission, but I am not able to find any MS word components over there? So here my question is what I need to install to work this component, Full MS office tool or just MS Word
is fine?
and Another point, is I have not restarted my machine so do I need to restart my machine to get MS word application to be appear in compoent services. (dcomcnfg).
You answer would be really appreciated.
Thanks,
Amit
My Tech Blogs MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
I have fixed this issue by this, I am writing solution over here so that any body can use this.
Actually my machine is 64 bit server and installed MS office is 32 bit so that is directly not visible in in component services.
So I have follow below steps.
On 64 bit system with 32 bit Office try this:
Start
Run
mmc -32
File
Add Remove Snap-in
Component Services
Add
OK
Console Root
Component Services
Computers
My Computer
DCOM Config
Microsoft word 2003 - 2007
<div>Then I have set permission for that components.</div> <div>1. Right click component "Microsoft word 2003 - 2007" and select properties. 2. Choose the COM Securities tab 3. In Access Permissions, click "Edit Defaults" and add Network Service to it and give it "Allow local access" permission. Do the same for IIS_Users. 4. In launch and Activation Permissions, click "Edit Defaults" and add Network Service to it and give it "Local launch" and "Local Activation" permission. Do the same for IIS_Users</div> <div>5. Select "Identity" tab and select interactive
user.</div> <div> </div> <div>Then I have run my application thing is working fine.</div>
My Tech Blogs MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
Contributor
4524 Points
1764 Posts
MS word component not working in asp.net application in my server
Feb 09, 2012 08:12 AM|amitpatel.it|LINK
Hi Team,
I have used MS word 2010 compoent in my asp.net application and that is running fine in my location system,
But when I am trying to run this application in server it gives 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)).
So, I have installed MS word 2010 in my server and then go to dcomcnfg for set permission, but I am not able to find any MS word components over there? So here my question is what I need to install to work this component, Full MS office tool or just MS Word is fine?
and Another point, is I have not restarted my machine so do I need to restart my machine to get MS word application to be appear in compoent services. (dcomcnfg).
You answer would be really appreciated.
Thanks,
Amit
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
Contributor
4524 Points
1764 Posts
Re: MS word component not working in asp.net application in my server
Feb 10, 2012 12:33 AM|amitpatel.it|LINK
Hi Team,
Do we have any update on this?
Thanks,
Amit
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
Contributor
4524 Points
1764 Posts
Re: MS word component not working in asp.net application in my server
Feb 10, 2012 03:58 AM|amitpatel.it|LINK
Hi Team,
I have fixed this issue by this, I am writing solution over here so that any body can use this.
Actually my machine is 64 bit server and installed MS office is 32 bit so that is directly not visible in in component services.
So I have follow below steps.
On 64 bit system with 32 bit Office try this:
2. Choose the COM Securities tab
3. In Access Permissions, click "Edit Defaults" and add Network Service to it and give it "Allow local access" permission. Do the same for IIS_Users.
4. In launch and Activation Permissions, click "Edit Defaults" and add Network Service to it and give it "Local launch" and "Local Activation" permission. Do the same for IIS_Users</div> <div>5. Select "Identity" tab and select interactive user.</div> <div>
</div> <div>Then I have run my application thing is working fine.</div>
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application