I am getting this exception,
System.IO.FileLoadException: A procedure imported by 'GeometryUtils.dll' could not be loaded
while trying to call Activator.CreateInstanceFrom(geomUtilsAssemblyPath, "GeometryUtils.IsmRegionFactory");
I can see GeometryUtils.dll gets loaded using process explorer along with its dependencies. Dependency Walker and Reflector does not report any issue as well.
FYI, GeometryUtils is built using .NET 4.0 and calling process is built using .NET 2.0. So I have specified,
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
in executeable config file.
Any ideas, what may be going on?