954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

:sad: :sad: 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:
Line 28:
Line 29:
Line 30:
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.

sajithkahawatta
Newbie Poster
5 posts since Apr 2007
Reputation Points: 10
Solved Threads: 0
 

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 :) !

RakSaiABI
Newbie Poster
1 post since May 2008
Reputation Points: 10
Solved Threads: 0
 

I'm running into the same problem. What DLL did you include in the bin folder?

Thanks.

hermsen
Newbie Poster
1 post since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You