Pitney Bowes MapXtreme User Manual

Page 51

Advertising
background image

Chapter 2: Getting Started

Building ASP.NET Web Applications Without a Template

MapXtreme v7.1

51

Developer Guide

3. In this situation, you will notice that the MapXtreme web controls and tools will display red X’s in

the Designer, instead of their icons. To display the icons properly, copy the
MapXtremeWebResources folder from one of the MapXtreme sample applications and paste it
into your project where your Web.config and default.aspx files are located. Close and re-open
the web page to see the icons.

4. To run the web application under IIS 7 classic mode or IIS 6, copy the following code into the

Web.config file. To run in integrated pipeline mode, skip to

step 6

.

<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="MapInfo.CoreEngine, Version=7.1.0.90,
Culture=neutral, PublicKeyToken=93e298a0f6b95eb1" />
<add assembly="MapInfo.CoreEngine.Wrapper, Version=7.1.0.90,
Culture=neutral, PublicKeyToken=93e298a0f6b95eb1" />
<add assembly="MapInfo.CoreTypes, Version=7.1.0.90,
Culture=neutral, PublicKeyToken=93e298a0f6b95eb1" />
<add assembly="MapInfo.WebControls, Version=7.1.0.90,
Culture=neutral, PublicKeyToken=0a9556cc66c0af57" />
</assemblies>
</compilation>
<sessionState mode="StateServer"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;userid=sa;password="
cookieless="false" timeout="20" />
<httpHandlers>
<add verb="*" path="MapController.ashx"
type="MapInfo.WebControls.MapController, MapInfo.WebControls,
Version=7.1.0.90, Culture=neutral, PublicKeyToken=0a9556cc66c0af57" />
</httpHandlers>
<httpModules>
<add type="MapInfo.Engine.WebSessionActivator,
MapInfo.CoreEngine, Version=7.1.0.90, Culture=neutral,
PublicKeyToken=93e298a0f6b95eb1" name="WebSessionActivator" />
</httpModules>
</system.web>

5. Save Web.config. Build the project and run the application.

6. To run the web application under IIS 7 integrated pipeline mode, add the following key in bold

text to the <appSettings> section:
<

appSettings

>

<!--

Use this setting to set config sections for Classic or

Integrated Pipeline Mode

-->

<

add

key

="MapInfo.Engine.Session.PipelineMode"

value

="Integrated"

/>

</

appSettings

>

Copy the following code into the Web.config file below the
<appSettings> section.
<

system.webServer

>

Advertising