AnsweredAssumed Answered

Console Application VS 2015 .Net 4.5.1 ArcGIs 10.4.1 , Console Application VS 2015 .Net 4.5.1 ArcGIs 10.4.1

Question asked by jsn on Oct 27, 2017
Latest reply on Oct 27, 2017 by jsn

Hello everyone

 

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:

  •  ArcGIS 10.4.2
  • VS 2015
  • SQL Server 2014

 

Source Code:

 

' Create the GPUtilites object

Dim gputilities As IGPUtilities = New GPUtilitiesClass()

'

Outcomes