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

Forums / General Discussions / Sitefinity 8.0 upgrade causing issues with missing assembly reference

Sitefinity 8.0 upgrade causing issues with missing assembly reference

10 posts, 1 answered
  1. Atit
    Atit avatar
    10 posts
    Registered:
    27 Feb 2015
    12 Jun 2015
    Link to this post

    We had a Sitefinity 6.0 application which we upgraded to 8.0 using Sitefinity Project manager. In older version we were using Telerik.Sitefinity.Services.Search.Publishing which probably is discontinued in Sitefinity v 7.3 and replaced by Telerik.Sitefinity.Services.Search.Model but when either of them I use in my code, I am getting error that says - 

    The type or namespace name 'Model' does not exist in the namespace 'Telerik.Sitefinity.Services.Search' (are you missing an assembly reference?)

     When I decompiled the assembly for Sitefinity, I see this namespaces are part of Telerik.Sitefinity.Search.Impl.dll which is referenced in my code already. Also, when I try typing in namespace in using statement, auto suggest lets me complete the whole using statement with suggestion but does not compile successfully.

    Did anybody come across this issue with upgrade from 6.0 to 8.0? I really appreciate any help regarding this.

     Thanks

    Atit

  2. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    17 Jun 2015
    Link to this post
    Hello Atit,

    Please, check the API changes regarding the search functionality here. Please, remove and reference the Telerik.Sitefinity.Search and Search.Impl again and check whether you are using the up to date binding redirects for your version available from the _EmptyProject web.config. I highly recommend to try using your custom code or widgets on a newly created project with that version and see whether the error reproduces, so we can isolate it.
    Hope this helps.

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Atit
    Atit avatar
    10 posts
    Registered:
    27 Feb 2015
    18 Jun 2015 in reply to Nikola Zagorchev
    Link to this post

    Hi,

     Thanks for the feedback. I removed and re-added references for Search and Search.Impl but they still seem to be dependent on System.Runtime version 1.5.11.0 which does not exist. I tried adding assembly bindings from _EmptyProject web.config as well as I tried assembly redirect from 1.5.11.0 to 2.6.8.0 but that does not seem to solve the problem.

    I just set up new 8.0 project and added files which is causing problem to that project and it builds fine. Not sure what's wrong with the upgraded project.

    Any idea what could be wrong?

     Thanks

    Atit

  4. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    19 Jun 2015
    Link to this post
    Hello Atit,

    You have an opened support case for the issue. Please, communicate the information in it and when a solution is found, we will be grateful if you share it with the community.

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  5. Atit
    Atit avatar
    10 posts
    Registered:
    27 Feb 2015
    23 Jun 2015
    Link to this post

    Hi All, 

    Probably this may save couple of hours for someone else. I was able to solve the problem by updating .csproj file to match as per the new 8.0 project. I had to add couple of lines from blank project to my existing project to get it to work..

     Thanks
    Atit

    Answered
  6. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    24 Jun 2015
    Link to this post
    Hello Atit,

    Thank you for sharing this with the community. You can share the modifications to the project file, if you want to.

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  7. Anthony
    Anthony avatar
    11 posts
    Registered:
    05 Mar 2015
    26 Aug 2015
    Link to this post

    I am having the same issue. I have copied all of the correct binding assemblies over from the blank 8.1 project to my upgraded 8.1 project, but I still have the same error.

    Do you have anything in particular you copied over that you think made it work?

  8. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    27 Aug 2015
    Link to this post
    Hello Anthony,

    Under what  .NET version the project is being built? For Sitefinity 8.1 it should be .NET 4.5. Please, ensure you are using the correct system assemblies for 8.1, as well as, you have the correct binding redirects in the web.config.

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  9. Anthony
    Anthony avatar
    11 posts
    Registered:
    05 Mar 2015
    27 Aug 2015
    Link to this post
    Yes, I found out that the issue was that it needed to be built using .NET 4.5 instead of 4.0. Thank you.
  10. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    27 Aug 2015
    Link to this post
    Hi Anthony,

    I am glad you have resolved the issue. Thank you for letting us know.

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
10 posts, 1 answered