I have been working with the desktop edition for quite some time but have run into a problem where we need to use the web edition. Thus, I have downloaded the trial version and have been working with that. I have the code below, copied from one of the sample applications and I have also added the GoogleURI to the web.config file so I don't see any problems there.
Anyway, here is the code in my Map.aspx file.
namespace EPIC.Works.Web {
public partial class Map : System.Web.UI.Page {
protected void Page_Load(object sender, EventArgs e) {
if(!Page.IsPostBack) {
mapControl.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"));
mapControl.CurrentExtent = new RectangleShape(-13939426.6371, 6701997.4056, -7812401.86, 2626987.386962);
mapControl.MapUnit = GeographyUnit.Meter;
mapControl.MapTools.OverlaySwitcher.Enabled = true;
mapControl.MapTools.MouseCoordinate.Enabled = true;
GoogleOverlay google = new GoogleOverlay("Google Map");
google.JavaScriptLibraryUri = new Uri(ConfigurationManager.AppSettings["GoogleUri"]);
google.GoogleMapType = GoogleMapType.Normal;
mapControl.CustomOverlays.Add(google);
}
}
}
}
When I try to load the page, all I get is a blank page. No errors, no nothing. Anybody have any idea what could be wrong?
Thanks.
Curtis