I wanted to build a VB.NET class file which would replace words in a Word Document. Now, the unique thing about it is I guess it is COM, meaning I have to strong name it.
After many problems with trying to strong name the reference to Word.Interop, I found this documentation:
I followed the VB.NET instructions to the tee, and it worked. I thought it was clear sailing from there...apparently not. The new reference I added was MyWord.dll which was the result of the documentation. I then declared it with the following:
Dim ThisApplication As MyWord.Application // to replace the regular Word.Application instance
Ok still going good...VS.NET recognizes all objects, methods, and properties of the regular MS Word Libs with MyWord.dll
Next, I take the project, put it onto a different computer, and register all the typelibs via regasm and then the assembly with gacutil.
Working good for like:
Dim my_text As String
Public Property mytext()
my_text = Value
But as soon as I call this function via COM from my other application:
Public Sub SearchReplace()
Everything stops with this error:
File or assembly name MyWord, or one of its dependencies, was not found.
Now I know that the Documents.Open() method exists, because my VS.NET sees it in object viewer. Could it be that I'm developing on 1 computer and then trying to make it work with another computer (I've registered and gac'ed on both computers).
Thanks in advance.