reference to class 'GPUtilitiesClass' is not allowed when its assembly is configured to embed interop types

1221
1
11-02-2017 06:07 AM
JoseSanchez
Occasional Contributor III

Good morning everyone,

These are my environments:

desktop 1: ArcGIS 10.2, VS 2012

desktop 2: ArcGIS 10.4.1, VS 2015

Project migrate from 10.2 to 10.4

I copied a Console application from desktop 1 to desktop 2.  When I open it and change the .Net framework from 3.5 to 4.5.2. I get the following error message:

Severity Code Description Project File Line Suppression State
Error BC31541 Reference to class 'GPUtilitiesClass' is not allowed when its assembly is configured to embed interop types. GPGISCreateSunshineOneCallPolygons C:\...\[MyApplication]\Module1.vb 177 Active

How can I fix that?

Is VS 2015 recommended for 10.4?

0 Kudos
1 Reply