autohaus icon indicating copy to clipboard operation
autohaus copied to clipboard

Could not load type 'Sitecore.ContentSearch.IndexFieldAttribute' from assembly

Open aiorgu opened this issue 11 years ago • 5 comments

Hi Alex,

Thank you for the this great demo! I am getting the below error message after installing the update package in Sitecore, breaking the whole CMS.

Just discovered that the Autohaus.Custom.Pipelines.Initializer pipeline is not compatible with the Sitecore CMS 7.0 rev. 130810, causing the post install scripts to fail.

Could not load type 'Sitecore.ContentSearch.IndexFieldAttribute' from assembly 'Sitecore.ContentSearch, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

Kind regards, Adrian

aiorgu avatar Aug 27 '13 10:08 aiorgu

I received this as well. Please let me know how to fix or work around.

colema18 avatar Sep 07 '13 01:09 colema18

Hey guys. See issue 7 I posted that says this demo is not compatible with Sitecore 7 Update-1. Use the Site core 7 initial release and that might fix your problem.

--JLDeveloper27

jondomin avatar Sep 07 '13 02:09 jondomin

Sorry guys I haven't had time to update it to U1. Based in the demand will get it done asap.

Sent from Mailbox for iPhone

On Fri, Sep 6, 2013 at 7:43 PM, Jonathan [email protected] wrote:

Hey guys. See issue 7 I posted that says this demo is not compatible with Sitecore 7 Update-1. Use the Site core 7 initial release and that might fix your problem.

--JLDeveloper27

Reply to this email directly or view it on GitHub: https://github.com/Sitecore/autohaus/issues/9#issuecomment-23980134

alexshyba avatar Sep 07 '13 03:09 alexshyba

Any update on getting this working with U1?

trowpa avatar Oct 11 '13 21:10 trowpa

I had to modify the installation package by removing Autohaus.Data.dll and Autohaus.Web.dll from it. Then after installation wizard finished I deployed/pulished from the solution. Reason is that the namespace 'Sitecore.ContentSearch.IndexFieldAttribute' got moved from Sitecore.ContentSearch.dll to Sitecore.ContentSearch.Linq.dll in U1.

Also I needed to update WWW.Autohaus.config: <Analyzer ref="contentSearch/configuration/defaultIndexConfiguration/analyzer" />

Notice it is case-sensitive, I guess U1 or U2 changed some element casing.

On a Sitecore 7 - Update 2 I got the Sitecore client to work, but the site gives me the following error, checking config and index via Luke the Updated field looks correct to me, so I'm still puzzled by the error.

[FormatException: String was not recognized as a valid DateTime.] System.DateTime.Parse(String s, IFormatProvider provider) +14353530 System.Convert.ToDateTime(String value, IFormatProvider provider) +14 System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) +14074642 Sitecore.ContentSearch.Converters.IndexFieldStorageValueFormatter.ReadFromIndexStorage(Object indexValue, Type destinationType) +609 Sitecore.ContentSearch.DocumentTypeMapInfo.SetProperty(Object target, String propertyName, String documentFieldName, Object value) +173 Sitecore.ContentSearch.DefaultDocumentMapper1.MapFieldValuesToType(IDictionary2 fieldValues, TElement result, DocumentTypeMapInfo documentTypeMapInfo) +792 Sitecore.ContentSearch.LuceneProvider.DefaultLuceneDocumentTypeMapper.ReadDocumentFields(Document document, IEnumerable1 fieldNames, DocumentTypeMapInfo documentTypeMapInfo, IEnumerable1 virtualFieldProcessors, TElement result) +1249 Sitecore.ContentSearch.DefaultDocumentMapper1.MapToType(TDocument document, SelectMethod selectMethod, IEnumerable1 virtualFieldProcessors, SearchSecurityOptions securityOptions) +283 Sitecore.ContentSearch.LuceneProvider.<GetSearchResults>d__8.MoveNext() +1584 System.Collections.Generic.List1..ctor(IEnumerable1 collection) +536 System.Linq.Enumerable.ToList(IEnumerable`1 source) +80 Autohaus.Web.UI.Controls.DataQueryControl.GetData() in d:\Modules\GitHub\autohaus\Autohaus.Web\Autohaus\controls\DataQueryControl.cs:44 Autohaus.Web.UI.Controls.Slideshow.get_SlideshowImages() in d:\Modules\GitHub\autohaus\Autohaus.Web\Autohaus\controls\Slideshow.ascx.cs:15 Autohaus.Web.UI.Controls.Slideshow.get_TotalAnimation() in d:\Modules\GitHub\autohaus\Autohaus.Web\Autohaus\controls\Slideshow.ascx.cs:26

ThaiTriNguyen avatar Oct 22 '13 12:10 ThaiTriNguyen