none
Microsoft.Office.Interop.Word not working on the server RRS feed

  • Question

  • Hello All

    We are using Microsoft.Office.Interop.Word in our application to set the merge field content into the word document from an c# code. Where  functionality works fine at localhost. But when deploying the same on the server. It shows below error :
    Please help with your solutions here.
    Thanks in Advance.

    • Moved by Lisa Zhu Thursday, July 19, 2012 8:56 AM Office related question (From:Visual C# General)
    • Moved by Cindy Meister MVPModerator Thursday, July 19, 2012 11:31 AM not using VSTO technology (From:Visual Studio Tools for Office)
    Wednesday, July 18, 2012 6:40 AM

Answers

  • Make sure versions are same on both your local machine and server. case may be server is having an older version.

    Mark Answered, if it solves your question and Vote if you found it helpful.
    Rohit Arora

    Wednesday, July 18, 2012 10:51 AM
  • Hi,

    Check out these links:

    http://asp.net.bigresource.com/Merge-Word-Documents-Office-Interop-NET-Keep-Formatting-N2lJcKr57.html

    http://asp.net.bigresource.com/Installation-how-to-deploy-Microsoft-Office-Interop-Word-dll-on-win-2003-server-r5oREDT7s.html

    I hope this was helpful!

    Thanks!

    Wednesday, July 18, 2012 11:41 AM

All replies

  • Hello All

    We are using Microsoft.Office.Interop.Word in our application to set the merge field content into the word document from an c# code. Where  functionality works fine at localhost. But when deploying the same on the server. It shows below error :
    Please help with your solutions here.
    Thanks in Advance.


    Wednesday, July 18, 2012 6:43 AM
  • 1.      Write the error you are facing.

    2.       Make sure Microsoft.Office.Interop.Word.dll is placed on the server. If it works on your local means there is no issue with coding part.


    Mark Answered, if it solves your question and Vote if you found it helpful.
    Rohit Arora

    Wednesday, July 18, 2012 6:46 AM
  • check in the gac(assembly) whether the office dlls are installed in the server or not. if there is no possibility of having office in prod server, you can use OpenXMl where you may not need office to be installed in that server where your code is running.

    http://stackoverflow.com/questions/8818160/open-xml-c-sharp-and-word-docx-documents

    regards

    joon

    Wednesday, July 18, 2012 6:58 AM

  • This is the error we are facing. :
    Wednesday, July 18, 2012 10:14 AM
  • Make sure versions are same on both your local machine and server. case may be server is having an older version.

    Mark Answered, if it solves your question and Vote if you found it helpful.
    Rohit Arora

    Wednesday, July 18, 2012 10:51 AM
  • Hi,

    Check out these links:

    http://asp.net.bigresource.com/Merge-Word-Documents-Office-Interop-NET-Keep-Formatting-N2lJcKr57.html

    http://asp.net.bigresource.com/Installation-how-to-deploy-Microsoft-Office-Interop-Word-dll-on-win-2003-server-r5oREDT7s.html

    I hope this was helpful!

    Thanks!

    Wednesday, July 18, 2012 11:41 AM
  • Please check this link

    http://social.msdn.microsoft.com/forums/en-US/vsto/thread/439096a7-fdd9-41d8-af9e-2bd58b3181e9/ 

    Its describing the same problem.

    ------------------

    Kapul

    Wednesday, July 18, 2012 10:50 PM