Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) 64bit W7 "Couldn't get design-time license" err (Read 16195 times)
microsec_ash
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Mar 23rd, 2010
64bit W7 "Couldn't get design-time license" err
Jun 15th, 2011 at 9:19am
Print Post  
We are using the Planner.NET Calendar control in an application.

I have a new 64 bit Windows 7 build machine. Our source repository contains the Calendar.dll (v4.0.2357.25124, referenced in the Visual Studio 2008 project) and the licenses.licx file which contains an entry for the MindFusion Calendar:

MindFusion.Scheduling.WinForms.Calendar, Calendar, Version=4.0.2357.25124, Culture=neutral, PublicKeyToken=abcdef0123456789

(PublicKeyToken changed)

When I attempt to rebuild the application, I get the following message:

Exception occurred creating type 'MindFusion.Scheduling.WinForms.Calendar, Calendar, Version=4.0.2357.25124, Culture=neutral, PublicKeyToken=abcdef0123456789' System.ComponentModel.LicenseException: Couldn't get design-time license for 'MindFusion.Scheduling.WinForms.Calendar'
C:\Users\Me\MyProject\licenses.licx Line 1


After searching the forum, I have tried exporting the "HKLM\SOFTWARE\MindFusion\ComponentLicenses" key and corresponding "Planner.NET" value, but this has not resolved the problem.

Can you tell me what I need to do to fix the problem?

Thanks.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: 64bit W7 "Couldn't get design-time licens
Reply #1 - Jun 15th, 2011 at 10:23am
Print Post  
Hi,

On 64-bit machines the license keys should be located under the "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MindFusion\ComponentLicenses" registry key. Can you reimport the license under this key and try again?

Regards,
Meppy
  
Back to top
 
IP Logged
 
microsec_ash
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Mar 23rd, 2010
Re: 64bit W7 "Couldn't get design-time licens
Reply #2 - Jun 15th, 2011 at 10:41am
Print Post  
Thanks for your suggestion, Meppy.

Meppy wrote on Jun 15th, 2011 at 10:23am:
Hi,

On 64-bit machines the license keys should be located under the "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MindFusion\ComponentLicenses" registry key. Can you reimport the license under this key and try again?

Regards,
Meppy


I have tried your suggestion, and imported the "Planner.NET" value into your suggested registry key, but this did not fix the problem.

At the moment, I have simply copied the library and licx file from our source control repository? Do I need to install Planner.NET on the new build machine?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: 64bit W7 "Couldn't get design-time licens
Reply #3 - Jun 15th, 2011 at 12:09pm
Print Post  
Try replacing the PublicKeyToken in the licx file with null:

Code
Select All
MindFusion.Scheduling.WinForms.Calendar, Calendar, Version=4.0.2357.25124, Culture=neutral, PublicKeyToken=null 


Also, ensure that the control version matches the version of the licensed assembly or remove the version in the licx file altogether:

Code
Select All
MindFusion.Scheduling.WinForms.Calendar, Calendar, Culture=neutral, PublicKeyToken=null 


Let me know if there is any progress.

Regards,
Meppy
  
Back to top
 
IP Logged
 
microsec_ash
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Mar 23rd, 2010
Re: 64bit W7 "Couldn't get design-time licens
Reply #4 - Jun 15th, 2011 at 12:14pm
Print Post  
I have tried the following:

MindFusion.Scheduling.WinForms.Calendar, Calendar, Version=4.0.2357.25124, Culture=neutral, PublicKeyToken=null

MindFusion.Scheduling.WinForms.Calendar, Calendar, Culture=neutral, PublicKeyToken=123456789abcdef

MindFusion.Scheduling.WinForms.Calendar, Calendar, Culture=neutral, PublicKeyToken=null

None of which fixed the problem.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: 64bit W7 "Couldn't get design-time licens
Reply #5 - Jun 15th, 2011 at 12:59pm
Print Post  
Can you double-check that you have installed a Planner.NET string value under the "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MindFusion\ComponentLicenses" registry key and that it has the appropriate value for the licensed assemblies?

Does the problem happen if you try to create new application and add the Calendar control to it?

Regards,
Meppy
  
Back to top
 
IP Logged
 
microsec_ash
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Mar 23rd, 2010
Re: 64bit W7 "Couldn't get design-time licens
Reply #6 - Jun 15th, 2011 at 1:13pm
Print Post  
Yes, that registry key exists.  I have no idea what the "correct" value is for the "Planner.NET" string value, but I copied the value from the old machine which the build does work on.  Not sure if I am allowed to say what the value is on an open forum?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: 64bit W7 "Couldn't get design-time licens
Reply #7 - Jun 15th, 2011 at 1:15pm
Print Post  
It turned out version 4 of the control checks against the "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MindFusion Limited\ComponentLicenses" registry key, rather than just "...\MindFusion\...".

Please, rename the registry key and try again.

Regards,
Meppy
  
Back to top
 
IP Logged
 
microsec_ash
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Mar 23rd, 2010
Re: 64bit W7 "Couldn't get design-time licens
Reply #8 - Jun 15th, 2011 at 1:28pm
Print Post  
I'm really not having any luck with this.  I've renamed the key as you suggest, even rebooted my machine, but it still doesn't work.
  
Back to top
 
IP Logged
 
microsec_ash
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Mar 23rd, 2010
Re: 64bit W7 "Couldn't get design-time licens
Reply #9 - Jun 15th, 2011 at 1:32pm
Print Post  
If I upgrade to the latest Planner.NET 5.1.1, will I be able to reuse my existing license?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: 64bit W7 "Couldn't get design-time licens
Reply #10 - Jun 15th, 2011 at 1:43pm
Print Post  
Ok, another suggestion. Unfortunately the version you are using is around 5 years old and I'm having some difficulties figuring out how things worked back then.

Replicate the Planner.NET value under the "HKEY_LOCAL_MACHINE\SOFTWARE\MindFusion Limited\ComponentLicenses" registry key as well. At the end this value should be present under both keys:

Code
Select All
HKEY_LOCAL_MACHINE\SOFTWARE\MindFusion Limited\ComponentLicenses
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MindFusion Limited\ComponentLicenses 


Regards,
Meppy
  
Back to top
 
IP Logged
 
microsec_ash
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Mar 23rd, 2010
Re: 64bit W7 "Couldn't get design-time licens
Reply #11 - Jun 15th, 2011 at 2:00pm
Print Post  
Sigh ... still not working.
  
Back to top
 
IP Logged
 
microsec_ash
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Mar 23rd, 2010
Re: 64bit W7 "Couldn't get design-time licens
Reply #12 - Jun 15th, 2011 at 2:23pm
Print Post  
Well that's interesting ... I just created a new Visual Studio 2008 project, added a reference to the same library file as the Visual Studio project I am having problems with, copied the licenses.licx file into the new project's folder, and the new project works:

Public Class Form1

    Friend WithEvents m_CalMain As MindFusion.Scheduling.WinForms.Calendar

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
       m_CalMain = New MindFusion.Scheduling.WinForms.Calendar
       CType(Me.m_CalMain, System.ComponentModel.ISupportInitialize).BeginInit()
       m_CalMain.Date = Now.Date
       Me.m_CalMain.Dock = System.Windows.Forms.DockStyle.Fill
       Me.m_CalMain.EndDate = New Date(2007, 5, 2, 0, 0, 0, 0)
       Me.m_CalMain.Location = New System.Drawing.Point(0, 0)
       Me.m_CalMain.MonthRangeSettings.HeaderStyle = MindFusion.Scheduling.WinForms.MonthRangeHeaderStyles.Title
       Me.m_CalMain.MonthSettings.HeaderStyle = MindFusion.Scheduling.WinForms.MonthHeaderStyles.Title
       Me.m_CalMain.Name = "m_CalMain"
       Me.m_CalMain.TabIndex = 0
       Me.m_CalMain.TimetableSettings.TwelveHourFormat = MindFusion.Scheduling.WinForms.State.Disabled
       Me.Controls.Add(m_CalMain)
       CType(Me.m_CalMain, System.ComponentModel.ISupportInitialize).EndInit()
    End Sub
End Class


Produces a dialog with a calendar in it.

Unfortunately, recreating the project which doesn't work is NOT an option because it is very large and complex.

Does this help you identify what is causing the problem?
  
Back to top
 
IP Logged
 
microsec_ash
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Mar 23rd, 2010
Re: 64bit W7 "Couldn't get design-time licens
Reply #13 - Jun 15th, 2011 at 2:30pm
Print Post  
Following on from my previous comment, I have used notepad on the Visual Studio projects to make sure the Reference is correct, and both projects have the identical reference:

<Reference Include="Calendar, Version=4.0.2357.25124, Culture=neutral, PublicKeyToken=1234567890abcdef">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\lib\Calendar.dll</HintPath>
</Reference>


And yet, I still cannot build the project I need it in. What on earth os going on?! ???
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: 64bit W7 "Couldn't get design-time licens
Reply #14 - Jun 15th, 2011 at 2:59pm
Print Post  
Does it still give the same compile-time exception - LicenseException? Can you try deleting and re-adding the references to the Calendar assembly in your project?

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint