Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Updating from one version to another (Read 8162 times)
elpuerco
Junior Member
**
Offline


Time?  What's time matta
to a pig?

Posts: 94
Joined: Oct 2nd, 2007
Updating from one version to another
Nov 12th, 2007 at 6:52pm
Print Post  
Hi,

I would be interested to hear how others update existing applications with newer versions of the Planner.NET.

My exisiting application has gone belly up with errors referencing the older version even though I have updated the references.

I am getting errors including designer license issues?

I have created a new app and copied that lic file over to no avail.

I am at the stage where I am looking at numerous errors in the form.vb[design] module which I shouldn't have to??

I have logged the team but thought I would ask here too.

Thanks

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


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Updating from one version to another
Reply #1 - Nov 13th, 2007 at 6:43am
Print Post  
Try the following steps:

1. Remove the references in your application to all Planner.NET dlls.

2. Uninstall all versions of Planner.NET you have currently installed.

3. Install the last version of the control.

4. Add new references to the Planner.NET dlls in your application.

5. Set the public key token in your licx file to null:

Code
Select All
PublicKeyToken=null 


6. Rebuild.

Let me know if there is any improvement.

Meppy
  
Back to top
 
IP Logged
 
dimmer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 21
Joined: Jun 27th, 2007
Re: Updating from one version to another
Reply #2 - Nov 14th, 2007 at 2:44pm
Print Post  
Hi

I'm having a problem after upgrading to version 4.3 also...

I followed the steps posted by Meppy but am getting the following error when I try to run my project:

An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not load file or assembly 'Calendar, Version=4.2.1.19730, Culture=neutral, PublicKeyToken=9bbcdceda2685d38' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).

I looked at licenses.licx and it contains this line of text:

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

So somehow my project is trying to reference the old version, which is no longer installed...

The references I have include:

Calendar (4.3.0.24470)
Common (1.0.2826.18027)
StandardForms (4.3.0.24471)

I'm not really sure how to proceed from here and I don't really have any experience troubleshooting such issues, so any help would be greatly appreciated as always

Thanks,

Brian
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Updating from one version to another
Reply #3 - Nov 14th, 2007 at 2:48pm
Print Post  
Hi,

Check whether the "Use specific version" property of the calendar.dll reference isn't enabled by some chance. Otherwise VS might refuse to load the new version.

Stoyan
  
Back to top
 
IP Logged
 
dimmer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 21
Joined: Jun 27th, 2007
Re: Updating from one version to another
Reply #4 - Nov 14th, 2007 at 4:56pm
Print Post  
No...The Specific Version property is set to false for all of the dll's...
  
Back to top
 
IP Logged
 
dimmer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 21
Joined: Jun 27th, 2007
Re: Updating from one version to another
Reply #5 - Nov 14th, 2007 at 6:52pm
Print Post  
I forgot to say that before I upgraded I was only using the Trial version and have now installed the full version.  I don't think that this should matter but thought that I'd mention it...

I reinstalled the trial version and opened up a copy of my project that I had made before the upgrade and it is working fine still, although I'm obviously still getting the same message when I try to open the project that references the new control...

I will try what I can on my own but was hoping that you would be able to offer some more suggestions...

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Updating from one version to another
Reply #6 - Nov 14th, 2007 at 7:12pm
Print Post  
Because of strong-naming, you must rebuild your project with the new version of dlls. Just copying the dlls in the run folder and starting the .exe will not work.

If you have rebuilt the project, check whether the "Copy local" property of the references is set to true. If it isn't, the executable will excpect the new version of the dll, but it will find the old ones in the run folder.

Stoyan
  
Back to top
 
IP Logged
 
dimmer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 21
Joined: Jun 27th, 2007
Re: Updating from one version to another
Reply #7 - Nov 14th, 2007 at 7:42pm
Print Post  
Hi

I had added all of the references within the project, and the Copy Local property was set to Yes.  When I selected Build --> Build project, the build succeeded.  I also added the new control to the toolbox.

I actually just got it working, and I think that the problem was related to the licenses.licx file, though I have to admit I'm not too sure what I'm doing, but it now reads as follows:

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

(I changed PublicKeyToken to 'Null' as Meppy had suggested).

Regarding the licenses.licx file, I found this article, and I think this is what ultimately fixed the problem...

http://weblogs.asp.net/grobinson/archive/2004/04/13/112410.aspx

So it seems to be working now, which is good. 
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Updating from one version to another
Reply #8 - Nov 14th, 2007 at 8:11pm
Print Post  
To make this clear, which suggestion from that article has helped - removing the licx file from source control, or deleting it and adding the control again?

Stoyan
  
Back to top
 
IP Logged
 
dimmer
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 21
Joined: Jun 27th, 2007
Re: Updating from one version to another
Reply #9 - Nov 15th, 2007 at 10:49am
Print Post  
After updating Calendar.dll, Mindfusion.Common.dll and StandardForms.dll from within Visual Studio, the process I used is as follows:

-I first deleted the licx file
-Then I created a new form and dragged the new calendar on to it after adding the updated version to the toolbox
-Then a new licx file with the correct version info was created.
-After the new licx file was created, the version value had been updated to 4.3.0.24470, although the PublicKeyToken value was still set to its previous value: 9bbcdceda2685d38, which I'm assuming was a randomly generated value.  I changed it to PublicKeyToken=Null as per Meppy's suggestion below, but I don't know if this last step was necessary as I didn't run the project before changing the value...

That's it, and it seems to be working.  I'm out of the office for the whole morning but I will repeat this process this afternoon or tomorrow morning to confirm the steps above.



  
Back to top
 
IP Logged
 
elpuerco
Junior Member
**
Offline


Time?  What's time matta
to a pig?

Posts: 94
Joined: Oct 2nd, 2007
Re: Updating from one version to another
Reply #10 - Nov 15th, 2007 at 6:01pm
Print Post  
Sorry have been tied up with other things and just got back to this.

Well this was a very painful upgrade to say the least!

I uninstalled the 4.2 version and installed the 4.3.

When opening the project in the VS.NET IDE I got loads of errors as in my original opening post.

As with dimmer the project was still referring to the 4.2 even though I had removed all the references and replaced with the new.

I resolved the problem when finally the project displayed my form, less the calendar controls as they were not refreshed during the referencing process.

I then had to manually add the new calendar control to my form, open a backup copy of the project and manually enter all the properties etc so that I did not have to redesign it all from scratch.

So now I have my project working using the new 4.3 control.

Now I think this is a cool control but the upgrade is less than great.

The licx file was involved as with dimmer.

I am happy I have it all working again, however it was a painful experience which I hope wont happen with future updates.

On a lighter note this does not distract me from the fact that this is a truely excellent control and fits our needs perfectly!

On another note I get this very very annoying thing happening when adding the dll files to new projects.

I choose the source file of where the dll files are.

I then choose the dll files and they appear in the list.

If I try to do anything with the planner control etc I get errors like Appointment not defined.

So I go to references and see that I need to tick the entries for Mindfusion in the list at the bottom of the display.

I start to do this and get an error saying it is already defined in the project and VS.NET crashes.

I reopen and go to references and click all the Mindfusion entries and all works fine.

This ONLY happens when I first reference the planner.net controls in a new project.

Any ideas, is this a bug?


















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


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Updating from one version to another
Reply #11 - Nov 16th, 2007 at 9:51am
Print Post  
Have you tried to simply add the Calendar control to a form of your new application? The appropriate dll files should then be automatically added to the project references.

Meppy
  
Back to top
 
IP Logged
 
elpuerco
Junior Member
**
Offline


Time?  What's time matta
to a pig?

Posts: 94
Joined: Oct 2nd, 2007
Re: Updating from one version to another
Reply #12 - Nov 18th, 2007 at 9:39am
Print Post  
Not sure which problem your advice refers to but yes I did what you said whislt trying to resolve the licx issue and the new calendar worked ok etc but did not help with the exixting app using a previous version of the calendar.

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint