Did you set a product key using "CheckAndSavePKey()"?
I get the exception below when I try to activate after a trial period has expired. Here is the code I'm using. Have I missed something?
public void menuItemAnestheticRecord_Click(object sender,EventArgs e) {
//module will not load if trial has expiredformOpenDentalA.isActivated = TurboActivate.IsActivated();TurboActivate.VersionGUID = "15892115844bafc976eaba18.08669694"; //if (TurboActivate.GracePeriodDaysRemaining() == 0) TurboActivate.UseTrial(); int trialDaysRemaining = TurboActivate.TrialDaysRemaining(); if (trialDaysRemaining == 0 && formOpenDentalA.isActivated == false) { System.Windows.Forms.MessageBox.Show(Lan.g(this, "Your trial period for the Anesthesia Module has expired. Please contact www.bigideasoft.com to purchase a license for your software.")); } else if (trialDaysRemaining > 0 || formOpenDentalA.isActivated){ //either still in trial or they've purchased a license
isHidden = Convert.ToBoolean(AnesthPCPrefs.CreateObject(thisPCName));//for hiding/showing Splash screen on startup if (isHidden == false){ //shows Splash screen if users unchecks hide checkbox on FormAboutSplash FormSplash FormS = new FormSplash(); FormS.Show(); DateTime now = DateTime.Now; while (DateTime.Now < now.AddSeconds(3.50)) { System.Windows.Forms.Application.DoEvents(); } FormS.Dispose(); } //pass in the selected PatNum patNum = FormOpenDental.CurPatNum; AnestheticData AnestheticDataCur; AnestheticDataCur = new AnestheticData(); Patient pat = Patients.GetPat(patNum); if (patNum == 0) { DialogResult result = System.Windows.Forms.MessageBox.Show("Please select a patient", "", MessageBoxButtons.OK, MessageBoxIcon.Information); eturn; } FormAnestheticRecord FormAR = new FormAnestheticRecord(pat, AnestheticDataCur); FormAR.ShowDialog(); FormAR.visualStyler1.Shutdown(); } }}See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************InvalidProductKeyException: The product key is invalid or there's no product key. at TurboActivate.Activate() at Anesthesia.FormOpenDentalA.menuItemLicensing_Click(Object sender, EventArgs e) at System.Windows.Forms.MenuItem.OnClick(EventArgs e) at System.Windows.Forms.MenuItem.MenuItemData.Execute() at System.Windows.Forms.Command.Invoke() at System.Windows.Forms.Command.DispatchID(Int32 id) at System.Windows.Forms.Control.WmCommand(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5444 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll----------------------------------------OpenDental Assembly Version: 7.9.9.0 Win32 Version: 7.9.9.0 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/OpenDental.exe----------------------------------------System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll----------------------------------------System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll----------------------------------------System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll----------------------------------------CodeBase Assembly Version: 7.1.0.0 Win32 Version: 7.1.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/CodeBase.DLL----------------------------------------System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll----------------------------------------OpenDentBusiness Assembly Version: 7.9.9.0 Win32 Version: 7.9.9.0 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/OpenDentBusiness.DLL----------------------------------------SparksToothChart Assembly Version: 4.7.1.0 Win32 Version: 4.7.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/SparksToothChart.DLL----------------------------------------Microsoft.DirectX.Direct3D Assembly Version: 1.0.2902.0 Win32 Version: 9.05.132.0000 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/Microsoft.DirectX.Direct3D.DLL----------------------------------------xImageDeviceManager Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/xImageDeviceManager.DLL----------------------------------------SigPlusNET Assembly Version: 1.0.2245.36238 Win32 Version: CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/SigPlusNET.DLL----------------------------------------AxInterop.AcroPDFLib Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/AxInterop.AcroPDFLib.DLL----------------------------------------System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll----------------------------------------MySql.Data Assembly Version: 6.2.4.0 Win32 Version: 6.2.4.0 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/MySql.Data.DLL----------------------------------------System.Transactions Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll----------------------------------------Oracle.DataAccess Assembly Version: 2.112.2.0 Win32 Version: 2.112.2.0 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/Oracle.DataAccess.DLL----------------------------------------System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll----------------------------------------System.EnterpriseServices Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll----------------------------------------CDT Assembly Version: 7.4.1.0 Win32 Version: 7.4.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/CDT.DLL----------------------------------------Anesthesia7.9 Assembly Version: 7.9.4168.29521 Win32 Version: 7.9.4168.29521 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/Anesthesia.dll----------------------------------------Tao.OpenGl Assembly Version: 2.1.0.4 Win32 Version: 2.1.0.4 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/Tao.OpenGl.DLL----------------------------------------Tao.Platform.Windows Assembly Version: 1.0.0.4 Win32 Version: 1.0.0.4 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/Tao.Platform.Windows.DLL----------------------------------------AutomaticUpdater Assembly Version: 2.6.14.0 Win32 Version: 2.6.14.0 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/AutomaticUpdater7.9.dll----------------------------------------SkinSoft.VisualStyler Assembly Version: 1.0.0.0 Win32 Version: 2.2.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Dental/SkinSoft.VisualStyler.DLL----------------------------------------
************** JIT Debugging **************To enable just-in-time (JIT) debugging, the .config file for thisapplication or computer (machine.config) must have thejitDebugging value set in the system.windows.forms section.The application must also be compiled with debuggingenabled.
For example:
<configuration> <system.windows.forms jitDebugging="true" /></configuration>
When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box.
Did you set a product key using "CheckAndSavePKey()"?
No, should I be?
I only thought I should do that if I'm building my own custom interface for entering license keys instead of using TurboActivate's.
If you're using the TurboActivate wizard then simply launch that instead of calling Activate(). Does this make sense?
Yes. Thanks for the clarification.