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

392
1
10-27-2017 10:05 AM
JoseSanchez
Occasional Contributor III

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()

'

0 Kudos
1 Reply