I am certain that ArcGIS Server is installed on my computer. However, while developing a console application, I encountered an issue when using:
The following error was thrown:
Interestingly, when I use Host.LicenseProductCode.ArcGISPro, the initialization works successfully.
Could anyone help me understand what might be causing this issue?
I have reviewed these two topics. Using Pro 3.2's Core.dll and CoreHost.dll on a machine with Server 10.8.1 and Pro 3.2 installed, the license can be initialized successfully. However, I encountered the same issue as described in the topics you provided: when executing Core.Data to read GDB or SHP files, the program crashes.
On the other hand, using Pro 2.7's Core.dll and CoreHost.dll on a machine with Server 10.8.1 and Pro 2.7 installed, the license initialization fails.
Since Server does not include these two DLLs (Core.dll and CoreHost.dll), it seems unrelated to the Server version.
Is the Host.LicenseProductCode.ArcGISServer class simply intended for using the Server license?