An unhandled exception of type System.Runtime.InteropServices.COMException occurred in WindowsApplication1.exe
Additional information: COM object with CLSID {3955D421-C8F3-11D2-B7C8-A22B3D95F811} is either not valid or not registered.
Im trying to get file properties.
I first got this type of error using the Wordperfect Application .dll.
This error was from a .dll from microsoft for reading file properties.
Heres my code I used:
Code:
Private oFilePropReader As DSOleFile.PropertyReader
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
oFilePropReader = New DSOleFile.PropertyReader
Label1.Text = oFilePropReader.GetDocumentProperties("C:\Source Code\DirMap.exe").Name
TextBox1.Text = oFilePropReader.GetDocumentProperties("C:\Source Code\DirMap.exe").Keywords()
End Sub
Is there something wrong with the code? Is there a reason why .net wont accept those two .dlls, but it does accept others?
If this wont work, is there another way to get a files attributes like: Author and keyword?