imadalhomsi

standalone application (You must have a license to use this ActiveX control)

Discussion created by imadalhomsi on Dec 12, 2011
Latest reply on Nov 29, 2012 by xtian79
I am developing a stand alone application, on my developing machine (win 7, VS 2010) works fine, problem comes to run it under testing machine with arcmap license only.
I get the exeption:
12.12.11 11:36:56 [001] [ERROR] Code:  EXCEPTION: System.ComponentModel.LicenseException: You must have a license to use this ActiveX control.
   at System.Windows.Forms.AxHost.CreateInstance()
   at System.Windows.Forms.AxHost.GetOcxCreate()
   at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
   at System.Windows.Forms.AxHost.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.AxHost.EndInit()
   at PreFRAT.MainForm.InitializeComponent() in C:\DHI\Products\src\PreFRAT\B_PFRA\MainForm.Designer.cs:line 910
   at PreFRAT.MainForm..ctor() in C:\DHI\Products\src\PreFRAT\B_PFRA\MainForm.cs:line 169
   at PreFRAT.Program.Main() in C:\DHI\Products\src\PreFRAT\B_PFRA\Program.cs:line 30

910:  ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).EndInit();
911:  ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit();
912:  ((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).EndInit();
any help, thanks
Imad

Outcomes