Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Could not load file or assembly 'Microsoft.Office.Interop.Word

Last post 05-15-2008 1:15 PM by abdalla. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-06-2007 11:17 AM

    Could not load file or assembly 'Microsoft.Office.Interop.Word

    my web page C#.net is work properly in my iis .but when i publish in
    another server it give errers.i used vs2005 and ms word 2003.
    but in the server there is no vs2005 or word installed. it has
    only .net frame work installed.folowing the error,

    Parser Error Message:
    Could not load file or assembly
    'Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The
    system cannot find the file specified.


    Source Error:


    Line 27: <compilation debug="false">
    Line 28: <assemblies>
    Line 29: <add assembly="Microsoft.Office.Interop.Word,
    Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
    Line 30: <add assembly="Office, Version=11.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c"/>
    Line 31:


    Source File: E:\hris\crisis\web.config Line: 29


    Assembly Load Trace: The following information can be helpful to
    determine why the assembly 'Microsoft.Office.Interop.Word,
    Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
    could not be loaded.


    should i install word or vs2005 or what is the reason.how can i fixed
    it

    i found that adding dll to the assembly cache in the server would solve the problem is it so should i add the dll in the bin file or what dll should i use.




































    • Post Points: 15
  • 05-30-2007 2:31 PM In reply to

    Re: Could not load file or assembly 'Microsoft.Office.Interop.Word

    Hi.

    Install the Word in ur production server.

    unless u install the word. it wont be able to refer the component which u r using in interop services.

     

    With Thanks
    R.Chezhian.
    • Post Points: 10
  • 04-23-2008 9:39 PM In reply to

    • abdalla
    • Not Ranked
    • Joined on 04-23-2008
    • Brazil
    • New Member
    • Points 10

    Re: Could not load file or assembly 'Microsoft.Office.Interop.Word

    Hi..

    In this case, how can I  use a interop services ?

    Can u post some code for example pls!

    Tks BRDs
    • Post Points: 5
  • 05-08-2008 8:02 AM In reply to

    • RakSaiABI
    • Not Ranked
    • Joined on 05-08-2008
    • India
    • New Member
    • Points 15

    Re: Could not load file or assembly 'Microsoft.Office.Interop.Word

     

    Download "Primary Interop Assemblies" from the link -> http://jagsmcp.spaces.live.com/blog/cns!26AC4A66E0B80098!2301.entry

    Install the Assembly to the same Folder where gacutil.exe is present in your System.

     Then try
     using Excel = Microsoft.Office.Interop.Excel;  in your Code

    Happy Coding Smiley Face !

    • Post Points: 15
  • 05-15-2008 4:48 AM In reply to

    Re: Could not load file or assembly 'Microsoft.Office.Interop.Word

     good solution  which help me  too....

    Yogesh Kadvekar


    " It is so simple to be happy, but it is so difficult to be simple."
    • Post Points: 5
  • 05-15-2008 1:15 PM In reply to

    • abdalla
    • Not Ranked
    • Joined on 04-23-2008
    • Brazil
    • New Member
    • Points 10

    Re: Could not load file or assembly 'Microsoft.Office.Interop.Word

    Tks... but my problem was other...

     I can do....

     For who wants.... I do the WindowControlLibrary and add on webApp....

    Example
     Dim _responseWrite As String = String.Empty
     _responseWrite = " <object id='ObjectOpenOffice' codebase='<dllFileName>.dll' classid='<dllFileName>.dll#Class' style='width: 0px; height: 0px' > "
    _responseWrite += "     <param name='<ParamName>' value='<ParamValue>' /> "
    _responseWrite += " </object> "
     Response.Write(_responseWrite)

     

    Tks All

    • Post Points: 5
Page 1 of 1 (6 items)