We are trying to add OpenStreetMapLayer to our maps page. And a simple web page with the code shown below is not working in our production server. It displays "Parameter is not valid" on every tiles in the maps. But it is working in our developement environment.
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Map1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"));
Map1.CurrentExtent = new RectangleShape(-13939426.6371, 6701997.4056, -7812401.86, 2626987.386962);
Map1.MapUnit = GeographyUnit.Meter;
Map1.MapTools.MouseCoordinate.Enabled = true;
OpenStreetMapLayer osmOverlay = new OpenStreetMapLayer();
Map1.StaticOverlay.Layers.Add(osmOverlay);
}
}