I have a windows application (vb2005) where I am trying to import a document. We also have the same code in an asp application and getting same error there:
Dim LocalFile As IDfFile = Clientx.getFile(Documentpath)
Dim importoperation As IDfImportOperation = Clientx.getImportOperation()
Dim impNode As IDfImportNode = importoperation.add(LocalFile)
Variable Documentpath has value "C:\Program Files\Astec Industries\WM2000\DailySalesReports\RGWP_20091118_ 082800PM.pdf" and the report exists.
Error:
at Documentum.Interop.DFC.IDfImportOperation.add(Obje ct newObject)
System.Runtime.InteropServices.COMException was unhandled
ErrorCode=-2147467259
Message="java.lang.ClassCastException: com.documentum.operations.impl.DfFile"
Source="Documentum.Dfc.1"
We recently upgraded from 6.0 to 6.5 and it used to work. Any ideas? Thank you.