Sitecore / autohaus

An open source demo site for Sitecore 7
47 stars 18 forks source link

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

Open aiorgu opened 11 years ago

aiorgu commented 11 years ago

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

colema18 commented 11 years ago

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

jondomin commented 11 years ago

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

alexshyba commented 11 years ago

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 notifications@github.com 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

trowpa commented 11 years ago

Any update on getting this working with U1?

ThaiTriNguyen commented 11 years ago

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:

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.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