Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jeroen Breuer 4909 posts 12266 karma points MVP 6x admin c-trib
    Aug 10, 2011 @ 14:59
    Jeroen Breuer
    0

    Can't get the Sample Itemprovider for Courier to work

    Hello,

    I've done everything which is described in here. I've added the custom table with the rows to both databases and I updated the courier.config file with this:

    <companyPickers>
      <!-- add property alias for those properties that use the company picker -->
      <add>company</add>
    </companyPickers>

    After this I added a property with the that alias and tried to deploy the custom datatype. I've selected the dll and usercontrol during deployment, but than I get this exception:

    Unable to load item width id 'SIEMENS' from provider 'Company provider'
    Error details
    
    Umbraco.Courier.Core.Exceptions.PackageException: Unable to load item width id 'SIEMENS' from provider 'Company provider' ---> Umbraco.Courier.Core.Exceptions.RetrieveException: Error retrieving item [SIEMENS] from provider [b0e47ff5-5f87-43de-ac90-72afde7bd26f]. ---> System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 
    at CompanyResolver.CompanyPersister.GetCompanyBySymbol(String symbol, ISession session) 
    at CompanyResolver.CompanyPersister.RetrieveItem[T](ItemIdentifier itemId) 
    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId) 
    --- End of inner exception stack trace --- 
    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId) 
    at CompanyResolver.CompanyItemProvider.HandlePack(ItemIdentifier id) 
    at Umbraco.Courier.Core.ItemProvider.Package(ItemIdentifier id) 
    at Umbraco.Courier.RepositoryProviders.Local.Package(ItemIdentifier itemId) in d:\TeamCity6\buildAgent\work\399aef48762b5884\Umbraco.Courier.RepositoryProviders\Local\Local.cs:line 173 
    at Umbraco.Courier.Core.PackagingManager.™(ItemIdentifier itemId, ItemProvider provider, ItemType itemType) 
    --- End of inner exception stack trace --- 
    at Umbraco.Courier.Core.PackagingManager.™(ItemIdentifier itemId, ItemProvider provider, ItemType itemType) 
    at Umbraco.Courier.Core.PackagingManager.š() 
    at Umbraco.Courier.Core.PackagingManager.š() 
    at Umbraco.Courier.Core.PackagingManager.PackageQueue() 
    at Umbraco.Courier.UI.Dialogs.CommitItem.PackageSelectedItems() 
    at Umbraco.Courier.UI.Dialogs.CommitItem.(Int32 step) 
    at Umbraco.Courier.UI.Dialogs.CommitItem.transfer(Object sender, EventArgs e) 
    at System.Web.UI.WebControls.Button.OnClick(EventArgs e) 
    at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) 
    at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) 
    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) 
    at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) 
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Error retrieving item [SIEMENS] from provider [b0e47ff5-5f87-43de-ac90-72afde7bd26f].
    
    Umbraco.Courier.Core.Exceptions.RetrieveException: Error retrieving item [SIEMENS] from provider [b0e47ff5-5f87-43de-ac90-72afde7bd26f]. ---> System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 
    at CompanyResolver.CompanyPersister.GetCompanyBySymbol(String symbol, ISession session) 
    at CompanyResolver.CompanyPersister.RetrieveItem[T](ItemIdentifier itemId) 
    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId) 
    --- End of inner exception stack trace --- 
    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId) 
    at CompanyResolver.CompanyItemProvider.HandlePack(ItemIdentifier id) 
    at Umbraco.Courier.Core.ItemProvider.Package(ItemIdentifier id) 
    at Umbraco.Courier.RepositoryProviders.Local.Package(ItemIdentifier itemId) in d:\TeamCity6\buildAgent\work\399aef48762b5884\Umbraco.Courier.RepositoryProviders\Local\Local.cs:line 173 
    at Umbraco.Courier.Core.PackagingManager.™(ItemIdentifier itemId, ItemProvider provider, ItemType itemType)
    Could not load file or assembly 'NHibernate, Version=2.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    
    System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version=2.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 
    File name: 'NHibernate, Version=2.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' 
    at CompanyResolver.CompanyPersister.GetCompanyBySymbol(String symbol, ISession session) 
    at CompanyResolver.CompanyPersister.RetrieveItem[T](ItemIdentifier itemId) 
    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId) 
    
    WRN: Assembly binding logging is turned OFF. 
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 
    Note: There is some performance penalty associated with assembly bind failure logging. 
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 
    

    This is all pretty new to me. What could be wrong?

    Jeroen

  • Per Ploug 865 posts 3491 karma points MVP admin
    Aug 10, 2011 @ 20:07
    Per Ploug
    0

    It looks like your provider is using a different version of nhibernate then courier is, so you migtht have to map that version of the dll in web.config, or use the one included with courier

     

  • Jeroen Breuer 4909 posts 12266 karma points MVP 6x admin c-trib
    Aug 11, 2011 @ 09:28
    Jeroen Breuer
    0

    I've made sure all the references are the same on both environments, but I still get the same error. Any hints on what might be wrong? I've installed courier 2.1. Does that reference to a newer NHibernate dll than the Sample Itemprovider?

    Oh and by the way I think I found a bug in Courier. What's the best place to report bugs?

    Jeroen

  • Per Ploug 865 posts 3491 karma points MVP admin
    Aug 11, 2011 @ 09:43
    Per Ploug
    0

    Place to report bugs:

    http://umbraco.com/help-and-support/customer-area/courier-2-support-and-download/report-an-issue

    We havn't changed references since the first version of courier 2, but I think the sample provider also uses nhibernate.linq

    /Per

     

  • Jeroen Breuer 4909 posts 12266 karma points MVP 6x admin c-trib
    Aug 11, 2011 @ 09:46
    Jeroen Breuer
    0

    I've also added nhibernate.linq to both environments, but still getting the same error. Any other suggestions?

    Jeroen

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies