AnsweredAssumed Answered

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

Question asked by jsn on Nov 2, 2017
Latest reply on Nov 2, 2017 by jsn

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?

Outcomes