We are trying to convert an export tool originally developed in VB6 to VB.NET. Our current version of FME is Desktop 2010 (Build 6210). We are developing in Visual Studio 2008 with the .NET Framework set to v2.0. in which we have a reference to the FMEObjectsDotNet.dll object library. All object library references resolve and the code compiles cleanly. The target CPU is x86. However the following code produces the error shown below.
Imports Safe.FMEObjects
Dim FMESession as Safe.FMEObjects.IFMEOSession
FMESession = FMEObjects.CreateSession()
And here's the error:
Safe.FMEObjects.FMEOException: Exception of type 'Safe.FMEObjects.FMEOException' was thrown. at Safe.FMEObjects.FMEObjects.CreateSession()