English

Error: Fatal when marshaling a spatial reference

Error Message

When using IFeatureWorkspace :: CreateFeatureDataset out-of-process, you get an automation error when a new spatial reference is passed as the second parameter. You would encounter this if, for example, you create a standalone application that passes a new spatial reference via this method to a workspace object instantiated by ArcCatalog.

Cause

This is caused by a known issue in marshaling of the spatial reference. See the ArcObjects developer help for more on marshaling and out-of-process servers.

Solution or Workaround

Create the new spatial reference in the process space that doesn't require marshaling of the spatial reference.