AnsweredAssumed Answered

Licensing basics...

Question asked by zborowskib on Dec 31, 2013
Latest reply on Jan 1, 2014 by modybsystematics-co-il-esridist
Hi everyone,

I have a beginner question with respect to licensing apps developed using the ArcObjects SDK.  Here's my environment:

Desktop ->10.1 SP1 Desktop Basic, 10.1 SP1 SDK installed, VS.NET 2k10

I have built a very small app, for proof of concept purposes, which pulls from the ArcGIS Desktop Basic license (I think).  Will this be okay to give to someone else who has a Desktop Basic license but not the Engine?

    ''' <summary>
    ''' This sub bings the ArcGIS runtime object to the application at runtime.
    ''' </summary>
    ''' <param name="sender">the sender object</param>
    ''' <param name="e">the event argument</param>
    ''' <remarks></remarks>
  Private Sub BindingArcGISRuntime(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.ResolveBindingEvent
    '
    ' TODO: Modify ArcGIS runtime binding code as needed
    '
    If Not RuntimeManager.Bind(ProductCode.Desktop) Then
      ' Failed to bind, announce and force exit
      MsgBox("ArcGIS runtime binding failed. Application will shut down.")
      End
    End If
  End Sub

Private Sub MyApplication_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
            Debug.Write("Initializing ESRI license...")
            'ESRI License Initializer generated code.
            m_AOLicenseInitializer.InitializeApplication(New esriLicenseProductCode() {esriLicenseProductCode.esriLicenseProductCodeStandard}, _
            New esriLicenseExtensionCode() {})
            Debug.WriteLine("Done.")
            Debug.Write("Initializing ArcObjects license...")
            GISValidationTool.initializeArcObjects()
            Debug.WriteLine("Done.")
        End Sub

Outcomes