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

Forums / Set-up & Installation / 3.2 upgrade challenges

3.2 upgrade challenges

8 posts, 0 answered
  1. Justin
    Justin avatar
    16 posts
    Registered:
    21 Oct 2007
    11 Mar 2008
    Link to this post

    I am working to upgrade an existing Sitefinity 3.1 project.  I followed the Patch instructions on the upgrade page and I'm getting 24 of the the following similar errors when I run a build on the project:

    Error 126 'StyleChart' is ambiguous in the namespace 'Telerik.Charting.Styles'. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\cina\af331665\7f8e65da\App_Web_gmh5xbx0.1.vb 264 

    I'm not sure what I need to look at to resolve this problem.  I have only one reference to Telerik.Charting in the web.config and only one instance of the DLL in the bin folder.

    Any help on what to look at would be greatly appreciated.  I am running VS 2008 and the project was previously upgraded to run on .net 3.5.

    Thanks,
    Justin
  2. Tihomir
    Tihomir avatar
    53 posts
    Registered:
    24 Sep 2012
    11 Mar 2008
    Link to this post
    Hello Justin,

    We have missed couple of steps in our upgrade guide to Sitefinity 3.2.

    Here are the missing steps that should fix your problem:

    1. Delete RadChart.NET2.dll and RadEditor.NET2.dll from the bin directory of your website.
    2. Delete Chart and Editor folders from the RadControls directory of your website.

    We are really sorry for the inconvenience! Your Telerik account has been upgraded for drawing our attention to this.

    Greetings,
    Tihomir
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Justin
    Justin avatar
    16 posts
    Registered:
    21 Oct 2007
    13 Mar 2008
    Link to this post
    Thanks Tihomir,

    I deleted the binaries and folders you identified.  The app compiles but now I'm getting the following error:  Remember the process I used to upgrade was the patch.

    Could not load file or assembly 'Telerik.Blogs, Version=3.1.1473.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Telerik.Blogs, Version=3.1.1473.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Blogs, Version=3.1.1473.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79' could not be loaded.

    === Pre-bind state information ===
    LOG: User = JUSTIN\justin
    LOG: DisplayName = Telerik.Blogs, Version=3.1.1473.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79
     (Fully-specified)
    LOG: Appbase = file:///C:/Program Files/telerik/Sitefinity3.1/WebSites/CinA/
    LOG: Initial PrivatePath = C:\Program Files\telerik\Sitefinity3.1\WebSites\CinA\bin
    Calling assembly : Telerik.Framework, Version=3.2.1500.2, Culture=neutral, PublicKeyToken=598c47861a2e0477.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Program Files\telerik\Sitefinity3.1\WebSites\CinA\web.config
    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Post-policy reference: Telerik.Blogs, Version=3.1.1473.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/cina/004418f6/6ea9c163/Telerik.Blogs.DLL.
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/cina/004418f6/6ea9c163/Telerik.Blogs/Telerik.Blogs.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files/telerik/Sitefinity3.1/WebSites/CinA/bin/Telerik.Blogs.DLL.
    WRN: Comparing the assembly name resulted in the mismatch: Minor Version
    ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
    

    Stack Trace:

    [FileLoadException: Could not load file or assembly 'Telerik.Blogs, Version=3.1.1473.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
       System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +78
       System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
       System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +64
       Telerik.Utilities.TypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +139
    
    [ArgumentException: Could not find a type for a name.  The type name was 'Telerik.Blogs.WebControls.Archive, Telerik.Blogs, Version=3.1.1473.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79'.]
       Telerik.Utilities.TypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +736
       Telerik.Utilities.TypeResolutionService.GetType(String name, Boolean throwOnError) +38
       Telerik.Utilities.TypeResolutionService.GetType(String name) +31
       Telerik.Utilities.TypeResolutionService.ResolveType(String name) +81
       Telerik.Cms.Data.WebControlBase.get_ControlType() +142
    
    [ControlNotResolvedException: The control type 'Telerik.Blogs.WebControls.Archive, Telerik.Blogs, Version=3.1.1473.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79' cannot be resolved, because of a missing file or assembly.]
       Telerik.Cms.Data.WebControlBase.get_ControlType() +221
       Telerik.Cms.Data.PageContentBase.GetRewriterServices() +255
       Telerik.Cms.Web.UrlHelper.FillTableRecursive(IPagesContainer parent, String parentPath, CmsUrlContext parentUrlContext) +842
       Telerik.Cms.Web.UrlHelper.FillTable(CmsManager man) +167
       Telerik.Cms.Web.UrlHelper..cctor() +761
    
    [TypeInitializationException: The type initializer for 'Telerik.Cms.Web.UrlHelper' threw an exception.]
       Telerik.Cms.Web.CmsHttpModule.BeginRequest(Object sender, EventArgs e) +1432
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

  4. Justin
    Justin avatar
    16 posts
    Registered:
    21 Oct 2007
    13 Mar 2008
    Link to this post

    Here's a bit more information.
    If I take my upgraded website project and point it to a newly created 3.2 database (from the corporate template), I don't get the error above, "Could not load file or assembly, 'Telerik.Blogs'.

    When I point the web site back to my project database, it throws the error.  It appears that the database has not been upgraded from v3.1 to v3.2.  I say this because the project database is missing objects like dbo.sf_Events and dbo.sf_Libraries. I'm assuming this is part of the problem I'm encountering.

    What process upgrades the database when applying the upgrade using the Patch method?

    Thanks!
    Justin

  5. Tihomir
    Tihomir avatar
    53 posts
    Registered:
    24 Sep 2012
    13 Mar 2008
    Link to this post
    Hi Justin,

    This is a weird problem which we cannot reproduce locally while trying to upgrade old projects. Let me suggest a couple of possible problems and solutions for them, hopefully they will fix your problem:

    I.
    Problem: locked dll files in the bin directory while applying the patch. This can cause this reference issue.
    Resolution: unlock dll files in the bin directory either by stopping IIS or using some tool to make sure no other process has locked them and then apply the patch once again.

    II. 
    Problem: some custom module of yours may be referencing the old Telerik.Blogs.dll
    Resolution: rebuild all of your projects with the new assemblies from v3.2 if they are using any of the Sitefinity dlls.

    III.
    Problem: Database not upgraded.
    Resolution: Actually this is a bit of a trick. Here are the steps how to do it:

    1. Open the web.config file of your website and change

       - <cms defaultProvider="Sitefinity" pageExtension=".aspx" disabled="true"

     
    - <roleManager enabled="false"

    2. Open up your website and Sitefinity should redirect you to the screen where you choose your database for the project.
    3. Choose the same database server and database name that exists in your current site configuration and proceed.

    This will force Sitefinity to try and upgrade the database if necessary.

    For another possible solution, you can refer to this online resource:
    Troubleshooting

    If these solutions are not successful, we will need some more information to pinpoint the problem:

    1. Which Sitefinity version your old project was built with - 3.1, 3.1 SP1, 3.1 SP2, etc.?
    2. What database do you use - SQL Server 2005, SQL Express, etc.?
    3. Which patch did you download and apply - patch date, name, etc.?

    Let us know how it goes.

    Greetings,
    Tihomir
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Justin
    Justin avatar
    16 posts
    Registered:
    21 Oct 2007
    14 Mar 2008
    Link to this post
    I am following the steps to upgrade the database.  The page loads and I select the database.  It lists out the administrators detected in the database and then updates.  Problem is, there are still no new objects created in the database.  The account used to connect is a dbo in the database.  There are no errors thrown during the process.

    Any suggestions on what to look at next?

    The custom control I added to the project doesn't reference any of the telerik dll and I'm still getting error on Telerik.Blogs.  Is it because the 3.2 web site is hitting a 3.1 database (since the db upgrade isn't happening)? 

    Thanks,
    Justin

  7. Tihomir
    Tihomir avatar
    53 posts
    Registered:
    24 Sep 2012
    14 Mar 2008
    Link to this post
    Hello Justin,

    We had one more report for such peculiar upgrading issues and the guy sent us over his DB. After researching the problem we managed to isolate a DB script which should hopefully now resolve your issue!

    Please, execute the following SQL script for the upgraded database through VS.NET or Management Studio Express:

    update 
     sf_WebControlBase 
    set  
    type=Replace(type, 'Telerik.Blogs.WebControls.Archive, Telerik.Blogs''Telerik.Blogs.WebControls.BlogArchive, Telerik.Blogs'
     
     
    update 
     sf_WebControlBase 
    set  
    type=Replace(type, ', Version=3.1.1458.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79'''

    Do let us know how it goes.


    Best wishes,
    Tihomir
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. Justin
    Justin avatar
    16 posts
    Registered:
    21 Oct 2007
    15 Mar 2008
    Link to this post
    That did the trick!

    Thank you!
Register for webinar
8 posts, 0 answered