Click here to Skip to main content
15,884,029 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I have a vb.net application EXE which will run correctly and throwing the below exception in some systems during some operations like button click events.

Any one suggest how to fix this exception.

Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Could not load file or assembly 'Microsoft.Office.Interop.Word, version=12.0.0.0, Culture=neutral,PublicKeyToken=71e9bce111e9429c' or one of it's dependencies.The system cannot find the file specified.


Details Continue Quit

Thanks.
Posted
Updated 21-Oct-17 22:56pm

I think the error message is quite explanatory. Either the machine does not have Office installed or has a different version installed. Make sure that the correct version of office is installed such that the versions of the assembly present on the server matches with the assembly expected by your application.
 
Share this answer
 
Comments
Prasad_Kulkarni 17-Aug-12 0:20am    
FIVE! :D
Manas Bhardwaj 17-Aug-12 3:09am    
thx!
To use Microsoft.Office.Interop.Word you need to have Microsoft Office installed on the machine. So, you cannot expect all the machines would have this. Better option is to go for Office OpenXml approach which does not require Microsoft Office installation on the machine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900