Issue on Uploading Two SOE to ArcGIS Server

627
3
01-22-2018 12:27 PM
BehrouzHosseini
Occasional Contributor

I need to upload two REST SOE to ArcGIS Server. They are technically same and I just copied second one from the first and renamed the project and built it but when I tried to upload the second SOE ArcGIS server Complained that

enter image description here

so I tried to change some configurations at second SOE as

1- in Properties/AssemblyInfo.cs I changed

[assembly: AssemblyTitle("GeometricNetworkUtility")]
[assembly: AssemblyDescription("Geometric Network Utility")]

[assembly: AddInPackage("ArcGIS.Soe.Rest.GeometricNetworkUtilitybyPhase", "f15446f6-4217-4c50-a970-078c0b64a20a",
    Author = " ",
    Company = " ",
    Description = "Geometric Network Utility",
    TargetProduct = "Server",
    TargetVersion = "10.4", 

    Version = "1.3")]‍‍‍‍‍‍‍‍‍‍‍

To 

[assembly: AssemblyTitle("GeometricNetworkUtility2")]
[assembly: AssemblyDescription("Geometric Network Utility 2")]

[assembly: AddInPackage("ArcGIS.Soe.Rest.GeometricNetworkUtility2", "f15446f6-4217-4c50-a970-078c0b64a20a",
    Author = " ",
    Company = " ",
    Description = "Geometric Network Utility 2",
    TargetProduct = "Server",
    TargetVersion = "10.4", 

    Version = "1.3")]‍‍‍‍‍‍‍‍‍‍‍

and in GeometricNetworkUtility.cs I changed the

Description = "Geometric Network Utility", 
DisplayName = "Geometric Network Utility",‍‍

to

Description = "Geometric Network Utility 2",
DisplayName = "Geometric Network Utility 2",

but still after rebuilding the solution and uploading the new SOE I am getting the same error message. Can you please let me know how to solve this?

0 Kudos
3 Replies
nicogis
MVP Frequent Contributor

Have you tried change guid of addinpackage and of the class?

0 Kudos
VinceAngelo
Esri Esteemed Contributor

Also asked on GIS Stack Exchange. I still question the need to two identical SOEs.

- V

0 Kudos
SalieghAziz
New Contributor II

We've needed to do that same, having 3 code streams.

A way around this is to do the following:

  • Change the SOE Project name
  • Change the ServerObjectExtension display name in the main class, the class name, as well as the GUID
  • Change the AddInPackage name and GUID

We successfully using the same SOE, with subtle differences, having changed the details aboe.

0 Kudos