Wir verwenden MapInfo MapX-Mapping-Engine in unserer ASP.NET-Anwendung. Nach der Neuinstallation des Servers (Windows Server 2003 SP2) ist ein seltsames Problem aufgetreten - die Webanwendung hängt beim Zugriff auf die ActiveX-Instanz.ASP.NET App hängt beim Zugriff auf ActiveX-Komponente
Zum Beispiel:
MapXLib.Map _mapXMap =
(MapXLib.Map)HttpContext.Current.Server.CreateObject("MapX.Map.5");
_mapXMap.MapUnit = MapXLib.MapUnitConstants.miUnitKilometer; // application hangs here
jedoch der Code
MapXLib.Map _mapXMap =
(MapXLib.Map)Activator.CreateInstance(Type.GetTypeFromProgID("MapX.Map.5"));
_mapXMap.MapUnit = MapXLib.MapUnitConstants.miUnitKilometer;
in einer Standard-Windows-Anwendung funktioniert gut.
Ich denke, das Problem hängt mit COM und ASP.NET zusammen, weil die Anwendung vor der Neuinstallation des Servers einwandfrei funktionierte.