+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / Upgrading from Release Canidate 1 to Final release

Upgrading from Release Canidate 1 to Final release

8 posts, 0 answered
  1. Imran
    Imran avatar
    75 posts
    Registered:
    17 Jan 2007
    14 Jun 2007
    Link to this post
    Hey

    We have been using RC1 for several months and we are keen to update to the v3 final release.

    Is there any documentation on how to update?

    My other concern is that, on the final release i noticed that admin directory has been moved. We have changed many files in our current  Admin diectory. Is there some way when we upgrade that our changes wont be lost?

    All help would be appreciated. Many thanks.

    Imran
  2. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    14 Jun 2007
    Link to this post
    Hi Imran,

    Before proceeding with the upgrade, we recommend that you compare your project’s web.config file to the original
    C:\Program Files\telerik\Sitefinity3.0\ProjectManager\EmptyProject\web.config file.
    Note down the changes you have made, as you will need to add those to the new project’s web.config.

    1.    Back up your old project and database by copying them to a different directory.
    Note that the C:\Program Files\telerik\Sitefinity3.0\WebSites folder will be deleted when you uninstall the old Sitefinity version.

    2.    Uninstall the old version. Make sure the whole C:\Program Files\telerik\Sitefinity3.0 folder is deleted.

    3.    Install the 3.0 version.

    4.    Create a new project with the 3.0 version.

    5.    Copy the old project database to the ~/App_Data folder if you are using SQL Express.

    If you are using SQL Server, in the project web.config file, edit the connection string to point to the old project database. This will upgrade the database automatically when the application is started for the first time.

    6.    Copy all custom files from the old project to the new project. These include user controls, scrpits, images, css files, master pages, dll files, etc.

    7.    Use some file comparison tool and compare all files from the old Admin folder to the new ones and merge the changes.

    Greetings,
    Rebecca
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Imran
    Imran avatar
    75 posts
    Registered:
    17 Jan 2007
    19 Jun 2007
    Link to this post
    Hello

    Thanks for this. Just another question. We orignally were using sitefinity beta version and then upgraded to RC1. For the upgrade we had tp copy chunks of data into the web.config.

    Now when comparing my current web.config to:

    C:\Program Files\telerik\Sitefinity3.0\ProjectManager\EmptyProject\web.config

    Should I only really be looking for data that we have added ourselves to the web.config for our applications purposes and ignore the old bits of sitefinity data?

    Thanks
  4. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    19 Jun 2007
    Link to this post

    Yes Imran, the point is to compare your current web.config to what the web.config was before you made modifications to it. Maybe I wasn't clear enough that you should compare to the RC1 Empty Project's web.config.
    Ignore all old bits of data and chunks you added while upgrading from previous versions.

    When you create a project with the new version, add your modifications to its web.config file.

    All the best,
    Rebecca
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Imran
    Imran avatar
    75 posts
    Registered:
    17 Jan 2007
    22 Jun 2007
    Link to this post
    Hi Rebecca

    Thanks for the info. I've got the project up and running, but there's a few things that I would like run over.

    In our RC1 project, to make controls appear under modules in the admin suite, for each usercontrol, we created a ToolBoxPanel file. These no longer seem to do anyting, so I guess this method has become redundant. How is it done now?

    Similarly, when editing pages, the controls that appear on the side, in RC1 we have a file that contains the following which added the controls:

    public override ToolboxItemCollection Controls
        {
            get
            {
                if (toolboxItems == null)
                {
                    //Register the UserList control for public use.
                    toolboxItems = new ToolboxItemCollection(new ToolboxItem[] {
                            new CmsToolboxItem("~/uc/Frontend/Timeline/Timeline.ascx", "Timeline", "Timeline", "Displays timeline"),
                            new CmsToolboxItem("~/uc/Frontend/AskAnExpert/AskAnExpertList.ascx", "Ask An Experts", "Ask An Expert List", "Displays and manages Ask An Experts"),
       
       etc....
                    
                            new CmsToolboxItem("~/uc/Frontend/ContactUs/ContactUs.ascx", "ContactUs", "ContactUs", "ContactUs")
                            //Add additional controls here.
                   }
                        )
                    ;
                }
                return toolboxItems;
            }
        }

    This no longer works. Looks like this method is redundant too. Having a quick scan of the forum I noticed that controls are added to the web.config ?

    Many thanks once again.
  6. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    22 Jun 2007
    Link to this post
    Hello Imran,

    Yes, there is a modification in the property declaration. Its return value is now of the generic type IList<IToolboxItem> instead of ToolboxItemCollection. It is strange that you didn't get any exceptions when  building your project.

    Otherwise, this approach should do the work although I recommend that you to declare your user controls in the web.config as it is easier to maintain them from there. The web.config syntax for user controls is as follows:
    <toolboxControls> 
        <add name="My User Control" section="Generic Controls" URL="~/YourUserControl.ascx" description="some descriptive text" overrideToolboxItem="False" />


    Sincerely yours,

    Vassil Daskalov
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  7. Imran
    Imran avatar
    75 posts
    Registered:
    17 Jan 2007
    22 Jun 2007
    Link to this post
    Hello,

    Thanks for the reply - yes I did get exceptions, but I commented all that out. 

    Lastly how do I get my modules to appear in the admin/module section ?

    Many thanks.
  8. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    22 Jun 2007
    Link to this post
    Hello Imran,

    1. You should modify your web.config file as follows:

    • Sample.Contacts is the name of the module. SectionHandler is the class inheriting the base class ConfigurationSection and contains the functionality for loading and accessing the contacts section information.
    <configSections>

                <sectionGroup name="telerik">

    <section name="contacts"         type="Sample.Contacts.Configuration.SectionHandler, Sample.Contacts" requirePermission="false"/>

                </sectionGroup>

    </configSections>

    • ContactsModule is the class, providing substantial information for your custom module.
    <framework>

      <modules>

    <add type=" Sample.Contacts.ContactsModule, Sample.Contacts"/>

      </modules>

    </framework>


    • Sample.Contacts.Data is the data project for the module and DefaultProvider is the class providing an implementation for the provider model.
    <telerik>

       <contacts defaultProvider="Sitefinity">

          <providers>

            <clear/>

            <add name="Sitefinity" securityProviderName="" type="Sample.Contacts.Data.DefaultProvider, Sample.Contacts.Data" connectionStringName="DefaultConnection" visible="true" />

          </providers>

       </contacts>

    </telerik>


    2. You should copy  Sample.Contacts.Data.dll and Sample.Contacts.dll to the bin folder of your web site.

    Best wishes,
    Rebecca
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
8 posts, 0 answered