473,386 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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
Apr 5 '07 #1
9 47958
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.
Apr 6 '07 #2
kenobewan
4,871 Expert 4TB
Suggest you try installing MS Word. HTH.
Apr 6 '07 #3
can i solve it without installing ms word. because this is a product server.
Apr 10 '07 #4
hey,
i solved problem by adding Microsoft.Office.Interop.Word.dll to assembly cache in.net frame work configutation which is on the administrative tool.
thank anyway.

now i got another error,following is the error,

"retriving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error : 80040154"

is it a permissin error. if i add a com reference must ms word be instslled.can i do it without install ms office
Apr 10 '07 #5
Hi


Have you ever managed to solve that COM issue? I'm facing the exact same problem!! :-(

Thanks in advance.
Jan 13 '09 #6
Frinavale
9,735 Expert Mod 8TB
You need to register the COM Object using the regsvr32 tool.
You also need to make sure that the component is in a directory that your ASPNET user account has permissions to.
Jan 16 '09 #7
Thanks for your reply.

I've solved it by installing the office suite in the server.

Although that solution does not please me...
Jan 16 '09 #8
Frinavale
9,735 Expert Mod 8TB
Even though this solution doesn't please you, it appears that it is the only solution.

Apparently you cannot redistribute the Microsoft Office libraries when deploying your application. This is stated in the clause that allows you to develop applications using Microsoft Office (I actually just discovered this a few minutes ago).

This means that whenever you develop using Microsoft Office components your application will only work if Office has been installed on the system that you are deploying your application to.

In your case, it means that you have to install Office onto the web server.

A word of advice: make sure that you keep Office patched at all times while it is on the web server.
Jan 16 '09 #9
Thanks for your (very) quick answer.

I'll keep in mind what you've said about keeping Office patched up.

For the purpose (mailmerge e pdf) that i'm using it's going to be a little dificult to make my client have Office installed in his web servers, but that's life... :-P

Thanks, once again
Jan 16 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ruslan | last post by:
Hi, I use Microsoft.Office.Interop.Word in order to generate word documents. On my computer it works well. When I put it on a new computer with Windows 2003 an "Access Denied" message...
1
by: R Reyes | last post by:
ISSUE (reposted) =========================== Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? For many people, they say they add the...
1
by: Alan T | last post by:
VS 2005 and MS Office 2003 installed. I can include Microsoft.Office.Core and Word in the references so I can add the using Microsoft.Office.Interop.Word. However, my workmate cannot do the...
0
by: chovatia.jaydeep | last post by:
Hi, I want to hide Menubar/Toolbar in Word/Excel 2007. I followed steps given in the link: http://msdn2.microsoft.com/en-us/library/aa338202.aspx Following above linke, i created Add-In...
0
by: kalyanilovesme | last post by:
how to import that name space(Microsoft.Office.Interop.Word) in asp.net with c#.. i added the reference of microsoft.office11.0.object library even though this name space not coming...
1
by: mac73 | last post by:
Hi, I am using asp.net 2.0 application with Microsoft.Office.Interop.Word version 11.0.0.0 on windows server 2003 with IIS 6.0. It works fine with access given to Network service. The scenario...
1
by: PulkitZery | last post by:
Hello! I am looking to find Microsoft.Office.Interop.Word dll for Office 2007, to include it into my project’s bin folder. I tried to download it from : ...
0
by: jojee | last post by:
Hi All i have a little problem in my project that is i m using word document for reading the contents from it so i did add the references Microsoft.Word.Object library and in the wen.config file i...
3
OuTCasT
by: OuTCasT | last post by:
Hi I have created an asp.net project that exports items from datagridview to and outlook calendar This is the code that i have used.. Dim body As String Dim ends As String ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.