If you keep getting the following error message in vb.net, you are not alone:
Could not load file or assembly
‘Microsoft.Office.Interop.Word, Version=188.8.131.52, Culture=neutral,
PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. The system cannot find the file specified.
Usually, what happens is your code works perfectly fine in your dev box, but your clients report getting the error above. Don’t waste time on debugging at your dev side, because the real issue is that your clients are missing some dll files due to different licenses.
Ask your clients to install the Microsoft Office Primary Interop Assemblies (PIA) on their machines.
To double check after installation, in C:windowsDirassembly you will see the Microsoft.Office.Interop.Word file there along with many other office dll files.
I hope this can save you a few hours of your life! 😉