Current location: Hot Scripts Forums » Programming Languages » ASP.NET » Could not load file or assembly 'Microsoft.Office.Interop.Word


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

Reply
  #1 (permalink)  
Old 04-06-07, 06:10 AM
sajithkahawatta sajithkahawatta is offline
New Member
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Angry 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.

--------------------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-13-07, 01:50 PM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,167
Thanks: 3
Thanked 8 Times in 8 Posts
Quote:
Originally Posted by sajithkahawatta View Post
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.
Bingo! That's exactly what you need to do. Compile the code with all the DLLs "Copy Locally" options set to true (so that they show up in your bin folder. This would include the office Interop DLL and everything else in there. That should do the trick.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 09-02-10, 05:10 AM
maryjok3698 maryjok3698 is offline
New Member
 
Join Date: Sep 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Hello,
There is no way to prevent Excel (or other Office application) from publishing excel Interop . I used a c# word/vb.net word component may help with you, It's named Spire.Doc.

Hope help with you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
using GET to load file into an iframe sondogg PHP 5 02-23-07 07:27 AM
Heres one, mysql statement to load a table with a file from ftp?? 0o0o0 PHP 8 04-28-06 02:32 AM
Checking a file exists lee PHP 3 04-23-06 01:44 AM
load a file within a webpage with a link digitalf PHP 8 06-25-04 11:49 PM
How to write a php script to load a text file into a table automatically? xmxpcom PHP 2 02-12-04 09:37 AM


All times are GMT -5. The time now is 10:57 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.