Jose Saiz

Jose Saiz

  • 1.5k
  • 260
  • 103.9k

Help with Microsoft.Office.Interop.Word

Jun 27 2015 1:50 PM

Hi, Guys does anyone have an idea how to fix this 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)).
App_Code.v_4ey7uw
" I have tried almost everything to get it going I even installed MS-OFFICE 2007 Enterprise Edition on the Windows 2008 Server and still does not work.

This is my Hosting Environment
Windows 2008 R2
IIS 7
ASP.NET C# using Framework 4.0 
all required Microsoft.Office.Interop assamblies located in the bin folder of the website
Read/Write Permission granted to Network Services and IIS User on the website in IIS
 
Via the IE Browser (www.domainame.com
I does not create neither one format {.doc or .pdf} while running it via the IE Browser (www.domainname.com)
 
Via the Visual Studio IDE Installed on the Server where IIS is running 
When I load the project and run it within the Installed Visual Studio 2010 IDE on the server  it only create the word document {.doc} and it fails when saving as .pdf format throwing an error message "Word command failure" 
 
Via the Visual Studio IDE on development Computer running Win 7 Pro 
ASP.NET Project developed in Visual Studio 2010 using Framework 4.0 
Within the Visual Studio IDE Development Computer it works 100% with no error.
 
Any Idea what am I missing or doing wrong?
 
TIA
Al 
 


 


Answers (4)