Go to DotNetFunda.com
 Online : 839 |  Welcome, Guest!   Login
 
Home > Forums > ASP.NET > Assembly error for adding COM-MSWord 11.0 reference to application.. ...

  • Nominate yourself for "Agile Software Development using Scrum" online session for FREE, click here.

  • Download OOPS and ASP.NET Online training session video and PPT from here.

ASP.NET Forum



Assembly error for adding COM-MSWord 11.0 reference to application..

Author: Susantaown | Posted on: 12/19/2009 | Category: ASP.NET | Views: 116 | Level: Starter | Status: [Member] |

I want to read one .doc file which is present in some folder in my application..
for this :
1: I added reference com component of Microsoft word 11.0
2: <add assembly="Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />

so in my local machine its working fine without any error but
whenever i uploaded my application to server its showing error

"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."

So any quick solution for this??
My application
ASP.Net +C#.Net.

susant


Reply

Interesting?   Share and Bookmark this

 Responses

Vuyiswamb  
Posted on: 12/21/2009 1:24:20 AM
Level: HonoraryPlatinum | Status: [Member] [Administrator] | Reply

Good Morning Susant

This basically means , that you have added the Reference to the assemby but in your bin folder there is no Assemly. To resolve this you need to do the Following. If you are using Visual Studio 2008 in your c:\ drive , go to the Following path

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office11\


and locate the File Microsoft.Office.Interop.Word.DLL


copy this File here and paste it in the bin folder of your project in the Production site and your problem will be gone. copy this file to the development side too so that this will not be a problem again.

Thank you for posting at Dotnetfunda

Vuyiswa Maseko


Susantaown, please login to Mark As Answer, if this helps | Alert Moderator 

Latest Posts

More ... 

 Write New Post


Advertisement

About Us | The Team | Advertise | Contact Us | Feedback | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found copied contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
All rights reserved to DotNetFunda.Com. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
(Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher)