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

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2007
Posts: 5
Reputation: sajithkahawatta is an unknown quantity at this point 
Solved Threads: 0
sajithkahawatta sajithkahawatta is offline Offline
Newbie Poster

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

 
0
  #1
Apr 6th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 1
Reputation: RakSaiABI is an unknown quantity at this point 
Solved Threads: 0
RakSaiABI RakSaiABI is offline Offline
Newbie Poster

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

 
0
  #2
May 8th, 2008
Download "Primary Interop Assemblies" from the link ->
http://jagsmcp.spaces.live.com/blog/...098!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 !
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 1
Reputation: hermsen is an unknown quantity at this point 
Solved Threads: 0
hermsen hermsen is offline Offline
Newbie Poster

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

 
0
  #3
May 7th, 2009
I'm running into the same problem. What DLL did you include in the bin folder?

Thanks.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC