Global Navigation Bar

MapInfo Products Knowledge Base


Product: MapXtreme 2004/2005
Version: 6.0, 6.1
Platform: Not Platform Related
Category: ASP.NET

Summary:
How to upgrade a web application from 6.0 to 6.1.

Question:
How to upgrade a web application from 6.0 to 6.1.


Answer:
Creating or Recompiling Web Applications

If recompiling an existing web application (or creating a new web application), the ExitProcess key should be omitted or set to false in the web.config. For example:

<add key="MapInfo.Engine.Session.ExitProcess" value="false" />

This is a change from Build 75, in which it was necessary to set this key to true.

To recompile a web application from 6.0 to 6.1:
1. Stop IIS and close all instances of Visual Studio.
2. Open the .csproj or .vbproj project file in a text editor, such as Notepad.
3. Change AssemblyFolderKey = "hklm\mapinfo.net" to AssemblyFolderKey ="hklm\mapinfo.net 6.1". If no key is present, add it for any MapInfo Assemblies. There are two ways the Assembly references may be made in the Project file. Entries similar to one of the following may be found:

<Reference
Name = "MapInfo.CoreTypes"
AssemblyName = "MapInfo.CoreTypes"
HintPath = "..\..\..\Program Files\Common
Files\MapInfo\MapXtreme\6.0\MapInfo.CoreTypes.dll"
AssemblyFolderKey = "hklm\mapinfo.net"
/>

<Reference
Name = "MapInfo.CoreTypes"
AssemblyName = "MapInfo.CoreTypes"
HintPath = "..\..\..\Program Files\Common
Files\MapInfo\MapXtreme\6.0\MapInfo.CoreTypes.dll"
/>

After the necessary changes were made to the file, it might look like:

<Reference
Name = "MapInfo.CoreTypes"
AssemblyName = "MapInfo.CoreTypes"
HintPath = "..\..\..\Program Files\Common
Files\MapInfo\MapXtreme\6.1\MapInfo.CoreTypes.dll"
AssemblyFolderKey = "hklm\mapinfo.net 6.1"
/>

4. Open WebForm1.aspx in a text editor. Change any references from 1.0.0.75 to 1.1.0.104.
5. Open web.config and change any references to 1.0.0.75 to 1.1.0.104.
6. Restart IIS.
7. ReOpen the project in Visual Studio and recompile.
8. Use Task Manager to stop and restart aspnet_wp.exe; in Windows 2003-specific operating systems, the aspnet process is named w3wp.exe.


Last Modified: 04/13/2006 03:05:10 PM
Global Navigation Bar