Share via


Microsoft Office Interop Word dll 32 bit on 64 bit

Question

Tuesday, June 21, 2011 10:32 PM

I have a website application made using visual studio 2005 on 32 bit environment. The website is using automation word to print report (Microsoft.Office.Interop.Word.dll). When I released it to 64 bit environment, I did this configuration:

   Set the DefaultAppPool
      Enable 32-bit applications: True
      Managed Pipeline Mode: Integrated
      Identity: NetworkService

   In HKEY_CLASSES_ROOT\AppID\000209FE-0000-0000-C000-000000000046 and HKEY_CLASSES_ROOT\AppID\000209FF-0000-0000-C000-000000000046, I add new string value
      Value name: RunAs
      Value data : Interactive user

   In HKEY_CLASSES_ROOT\CLSID\000209FE-0000-0000-C000-000000000046}, I add new string value
      Value name: AppID
      Value data: 000209FE-0000-0000-C000-000000000046

   In HKEY_CLASSES_ROOT\CLSID\000209FF-0000-0000-C000-000000000046}, I add new string value
      Value name: AppID
      Value data: 000209FF-0000-0000-C000-000000000046

   In cmd, I run this script cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true, and it works

   In cmd, I run this script C:\Windows\SysWOW64\regsvr32.exe E:\web\bin\ Microsoft.Office.Interop.Word.dll, and I got an error message The module “E:\web\bin\ Microsoft.Office.Interop.Word.dll” was loaded but the entry-point DLLRegisterServer was not found. Make sure that “E:\web\bin\ Microsoft.Office.Interop.Word.dll” is a valid DLL or OCX file and then try again

   When I tried to run the print feature ion my website, I got an error message Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040153.

Am I missing something here??

Thank you :)
Karina Tasha

All replies (1)

Sunday, June 26, 2011 1:21 AM ✅Answered

If Microsoft itself does not support server side office automation like this, you should switch to another approach as early as possible. http://support.microsoft.com/kb/257757