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?
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
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?
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:
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:
This is all pretty new to me. What could be wrong?
Jeroen
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
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
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
I've also added nhibernate.linq to both environments, but still getting the same error. Any other suggestions?
Jeroen
is working on a reply...