This topic discusses the extension compatibility with different versions of ArcGIS Enterprise and how to upgrade an older version of SOE or SOI project to be built with a later version of ArcGIS Enterprise SDK.
The best practice to deploy extensions to different versions of ArcGIS Enterprise is to compile the extension using the same version of ArcGIS Enterprise SDK as the version of ArcGIS Server where the extension will be deployed. Since how ArcGIS Server works with older versions of extensions is different depending on its version, this section explains the extension compatibility with different versions of ArcGIS Server.
Starting with ArcGIS Server 11.0, deploying SOEs or SOIs built with ArcGIS Enterprise SDK 10.x is no longer supported. In ArcGIS Server 11.0, if you register an SOE or SOI built with the 10.x version of ArcGIS Enterprise SDK, you will see the following error:
This extension cannot be deployed because it is built for ArcGIS Server 10.x and needs to be upgraded to version 11. See 'ArcGIS Enterprise SDK - Upgrade extensions'.
To continue using the extension in ArcGIS Server 11.0, you need to upgrade your extension and build it with ArcGIS Enterprise SDK 11.0. The extension upgrade process requires development efforts. Follow the instructions in Migrate older .NET SOE or SOI projects to 11.
Deploying an older version of SOE or SOI to ArcGIS Server at 10.9.1 or earlier version is not supported. Even though the extension may still load and function properly in the newer version of ArcGIS Server, the best practice is to recompile the extension using the same version of ArcGIS Enterprise SDK as the version of ArcGIS Server where the extension will be deployed. With that being said, if you want to deploy your SOE or SOI to a specific version of ArcGIS Server, you should compile your SOE or SOI using the same version of ArcGIS Enterprise SDK.
Similarly, if you want to use new features or APIs provided by the newer version of ArcGIS Enterprise SDK, you must upgrade your ArcGIS Server to the same version as the SDK.
To upgrade your ArcGIS Enterprise SDK, you should first uninstall any previous version of ArcGIS Enterprise SDK. This can be done through the Control Panel for Windows. Then, you should set up the development environment and install the later version of ArcGIS Enterprise SDK you need. Depending on the version of Enterprise SDK you installed, you can either recompile your older version of the SOE or SOI project or migrate your project.
You must follow the instructions in Migrate older .NET SOE or SOI projects to 11. Directly recompiling your older version of SOE or SOI project with Enterprise SDK 11.0 is not supported.
After you install the SDK, you can recompile your older version of the SOE or SOI project by following these steps:
Open Visual Studio, click Open a project or solution, and choose your existing SOE or SOI project.
Expand References in Solution Explorer on the right side.
Select all the ArcGIS Enterprise SDK libraries (starting with "ESRI.Server.") and set their Specific Version property to False in their Properties window.
Assemblyand modify the value of
Targetto match your SDK version. For example, if you upgrade to Enterprise SDK 10.9 or Enterprise SDK 10.9.1, set it to
Version = "10.9"
Double-click your project in Solution Explorer to open and edit the project's .csproj file. Change the
Addto match your SDK version and save this file. For example, if you upgrade to Enterprise SDK 10.9 or Enterprise SDK 10.9.1, set it to
In Target Version
A d d In Target Version> 10.9</Add In Target Version>
Build this project and generate the .soe file.
Sometimes Visual Studio may complain that the .soe file already exists in the
objfolder and can't be deleted when rebuilding the project. If this happens, you can manually delete these folders and then rebuild the project.