Select to view content in your preferred language

Need help figuring out errors with .NET in 10.1

1264
6
Jump to solution
12-28-2012 08:43 AM
PatrickGross
Emerging Contributor
This morning, I opened up a .NET project I created in VB 2010 Express over a year ago.  I upgraded to a new machine and also from 10 to 10.1.  I noticed that the licensing procedure has changed, but I can't figure out a few things:

1) Why would ESRI.ArcGIS.esriSystem.dll not be in my DotNet folder?
2) Is my method for initializing the license the wrong way to do it?

I'm using this code to retrieve the coordinates of the corners of a set of rasters.  I tried searching for information on how to initialize a license for a couple hours now with no solid reason as to why my reference to ESRI.ArcGIS.esriSystem won't work.

Thanks in advance!

[ATTACH=CONFIG]20275[/ATTACH]
0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor
Remove them and add them back again using "Add ArcGIS Reference"

View solution in original post

0 Kudos
6 Replies
RichardWatson
Deactivated User
ESRI.ArcGIS.System.dll is the assembly that you seek.
0 Kudos
KenBuja
MVP Esteemed Contributor
In a test project, I have ESRI.ArcGIS.System as a reference and can add the line

Dim test As New ESRI.ArcGIS.esriSystem.AoInitialize

10.1 has made changes with the enumerators. See What's New in the Help

[TABLE="class: dtTable"]                   Prior to 10.1                                                     10.1                                  esriLicenseProductCodeArcView                 esriLicenseProductCodeBasic                 esriLicenseProductCodeArcEditor                 esriLicenseProductCodeStandard                 esriLicenseProductCodeArcInfo                 esriLicenseProductCodeAdvanced

[/TABLE]
0 Kudos
PatrickGross
Emerging Contributor
ESRI.ArcGIS.System.dll is the assembly that you seek.


When I declare "Imports ESRI.ArcGIS.System" at the top, VB 2010 gives me the following error:

"Namespace or type specified in the Imports 'ESRI.ArcGIS.System' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases."

I checked my references and it's listed in there, so I don't know what setting I need to change.
0 Kudos
PatrickGross
Emerging Contributor
I think I found the culprit.

[ATTACH=CONFIG]20282[/ATTACH]

So, how do I repair these references?
0 Kudos
KenBuja
MVP Esteemed Contributor
Remove them and add them back again using "Add ArcGIS Reference"
0 Kudos
PatrickGross
Emerging Contributor
Thanks, y'all!  I figured it was some dumb mistake by me. :rolleyes:
0 Kudos