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


I am trying to use the Word Object Model in my app.
When i use the app locally i dont have any problems but when i put on the remote server i get this error....

Parser Error Message: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.

Guessing but i thought i needed to copy the MSWORD.OLB file to C:\prog~\Office\office11\ but i still get the same error.??

What do i need to do to get this to work.

I have office 2003 installed on my pc but not on my server??

As a side note..i also get this error
Parser Error Message: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0

when i have crystal report assemblies in the config file??? What am i missing on my server?

Strangely it highlights this line.
<add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/> (Atlas stuff)
But when i remove the crystal assembly stuff from config file all is ok??

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You will have to install MS OFfice on your server if you want to use its services to do whatever you are tryig to do. SImply copying OLB files is not going to help. Mind it that MS Word is a single threaded COM object which can become a bottle neck in high stress web applications. And also you will have to modify permisisons for the app to allow ASPNET user to instantiate it.

If you are using Crystal stuff in your app then make sure that you have them in your bin folder on your server or in GAC.
osiris247Author Commented:
Do i need to have all of office installed or simply Word for this to work.

I cant believe there is no dll or anything that you can make use of to work this.

I am not to concerned about the bottleneck, this part of the app will only have a max of 20 Concurrent users.

What crystal stuff do i need in the that the merge module stuff from ??

Yes, you will have to install Word (only) on the server. Office is not a reusable component that MS supplies. Its an aplication for which MS expects people to buy license.

I do not know how Crystal is being used in your application. But whatever assemblies you are refering to, put them in Bin folder under your web app. There is no need to put them in GAC.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.