Hi Don,
thanks for the reply. I’ve downloaded the Oralce dependencies 9.0.269.0 and installed them. I’ve created a new project based on the quick start Helloworld-project. In the code-behind of the mainwindow i have the following code
wpfMap1.MapUnit = GeographyUnit.DecimalDegree;
string connectString = "User ID=andi01;Password=xxx;Data Source=XE;";
OracleFeatureLayer oracleLayer = new OracleFeatureLayer(connectString, "EBA_SPATIAL_ADDRESSES", "ID");
oracleLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.Capital1;
oracleLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
LayerOverlay oracleOverlay = new LayerOverlay();
oracleOverlay.Layers.Add("OracleLayer", oracleLayer);
wpfMap1.Overlays.Add("OracleOverlay", oracleOverlay);
wpfMap1.CurrentExtent = new RectangleShape(0, 78, 30, 26);
wpfMap1.Refresh();
When i run this code, i get a TargetInvocationException and the programs stops.
- I’ve tried setting the target platform of the project to x64, but no success.
- I’ve build a standalone sample which only open a connection to oracle using the Oracle.DataAccess.dll with the same connectionstring. That works.
I’m a little stuck with that.
Any ideas are appreciated.
Regards,
Andreas