I copied a VB.Net Console Application from a station running ArcGIS 10.2 to another running 10.4. After opening the console application with Visual Studio, I get the following error message: "Reference to class 'GPUtilitiesClass' is not allowed when its assembly is configured to embed interop types."
This is my configuration:
' Create the GPUtilites object
Dim gputilities As IGPUtilities = New GPUtilitiesClass()