2
Answers

Microsoft.Office.Interop.Word.dll

Amit Singh

Amit Singh

8y
527
1
I am getting this error
 When i am adding Microsoft.Office.Interop.Word.dll
 
 
Reference.svcmap: Could not load file or assembly 'Office, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) App_WebReferences/YouPayV2/
Answers (2)
0
Alex Smith
NA 356 6.8k 8y
When working with Word file format, you can always try some other component that can be easily integrated to VS project from Nuget. Hope this saves your time.

 

https://www.nuget.org/packages/FreeSpire.Doc/

0
Manas Mohapatra
NA 29.3k 3.3m 8y
It means that the Office dll is not present in neither the bin folder of your app nor in GAC of webserver.
 
Make sure you have the exact version of the assmebly present at either of the location.
 
You need to install MS Office on the machine executing your Excel handling code. Secondly if you have installed office in your machine then just copy-paste Microsoft.Office.Interop.Word.dll to your server.