Hi,
I'm new to map suite and am having problems with the trial. I downloaded and installed the trial with no errors and have created a small aspx to display a map but am getting an error (see below):
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
ThinkGeo.MapSuite.WebEdition.Map.x1811944f4031e215() +979
ThinkGeo.MapSuite.WebEdition.Map.OnLoad(EventArgs e) +47
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
The code is as follows:
<%
<%
<%
<%
<%
<%
@ Page Language="VB" SmartNavigation="true"-->
@ Import Namespace="System" %>@ Import Namespace="Microsoft.VisualBasic" %>@ Import Namespace="ThinkGeo.MapSuite.Core" %>@ Import Namespace="ThinkGeo.MapSuite.WebEdition" %>@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>@ Register Assembly="WebEdition" Namespace="ThinkGeo.MapSuite.WebEdition" TagPrefix="cc1" %> DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">html xmlns="w3.org/1999/xhtml" >head id="Head1" runat="server">title>GIS Testtitle>script runat="server">
sub Page_Load(obj as object, e as eventargs)If Not Page.IsPostBack Then
End If
end sub
<
<
<
script>head>body>form runat="server">ajaxToolkit:ToolkitScriptManager runat="Server" EnableScriptGlobalization="true"
EnableScriptLocalization="true" EnablePartialRendering="true" ID="ScriptManager1" /> <cc1:Map ID="Map1" runat="server" Width="100%" Height="100%">
cc1:Map>
-----------------------------------------------------------------------
I've verified the bin directory as the dll referenced in the Developer Reference/Web Edition directory and that the System32 files are in the Windows/System32 directory.
Is there documentation on exactly what files are needed and where they should be put.
System Specs: Windows 2003 sp2, IIS6, .Net 3.5 w/ Ajax
thanks,
Andy
form>body>html>
<
<
<
<