The .NET interface is built as a wrapper around the COM interface. It is provided as a primary interop assembly signed by Altova and uses the namespace Altova.MapForceServer. During installation, MapForce Server will be registered automatically as a COM server object, so there is no need for a manual registration.
In order to use MapForce Server in your .NET project, add a reference to the Altova.MapForceServer.dll file, as shown below. The Altova.MapForceServer.dll is located in the bin folder of the MapForce Server installation folder. This .dll file is automatically added to the Global Assembly Cache (GAC) during MapForce Server installation.
|Note:||Prior to .NET Framework 4.0, the GAC was located in the %windir%\assembly directory. Starting with .NET Framework 4.0, the GAC is located in the %windir%\Microsoft.NET\assembly directory. The %windir% part represents the Windows operating system directory, typically C:\Windows.|
To add a reference to the MapForce Server DLL in a Visual Studio .NET project:
1.With the .NET project open in Visual Studio, click Project | Add Reference.
2.On the Browse tab, browse for the folder: <MapForceServer application folder>/bin, select the Altova.MapForceServer.dll, and click OK.
You can view the structure of the Altova.MapForceServer assembly using the Visual Studio Object Browser (to display the Object Browser, click Object Browser on the View menu).