User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 391,140 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,175 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 7918 | Replies: 2
Reply
Join Date: Apr 2007
Posts: 4
Reputation: sajithkahawatta is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sajithkahawatta sajithkahawatta is offline Offline
Newbie Poster

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

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2008
Posts: 1
Reputation: RakSaiABI is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
RakSaiABI RakSaiABI is offline Offline
Newbie Poster

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

  #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  
Join Date: Mar 2008
Posts: 4
Reputation: BarbaMariolino is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
BarbaMariolino BarbaMariolino is offline Offline
Newbie Poster

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

  #3  
May 9th, 2008
Hi,

Using Automation is not the way to have Excel or Word support on your web page. You will probably have to use some third party component. Here you can find a few reasons why is GemBox.Spreadsheet better then Automation: http://www.gemboxsoftware.com/GBSpre...htm#Automation.

GemBox.Spreadsheet is a .NET component for reading/writing XLS, XLSX, CSV and HTML files from .NET applications. We have a free version of the component (http://www.gemboxsoftware.com/GBSpreadsheetFree.htm) that you can use even in your commercial applications.

Mario
<snipped>

Originally Posted by sajithkahawatta View Post
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.
Last edited by peter_budo : May 11th, 2008 at 5:17 am. Reason: Keep It Spam-Free - Do not spam, advertise, plug your website, or engage in any other type of self promotion.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

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

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 6:44 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC