Index VPP files

Vote:
 

Im trying to index the files in VPP folder by placing the below code in Application_Start event of Global.asax.cs file:

FileIndexer.Instance.Conventions.ShouldIndexVPPConvention = new VisibleInFilemanagerVPPIndexingConvention();

However, I get - "the type or namespace name 'VisibleInFilemanagerVPPIndexingConvention' could not be found" error. I have added the namespaces - EPiServer.Find and EPiServer.Find.Cms namepaces in Global.asax.cs. Kindly let me know what else am I missing. Thanks.

#63279
Nov 14, 2012 10:54
Vote:
 

It 's in the: EPiServer.Find.Cms.Conventions-namespace.

Regards,
Henrik

#63280
Nov 14, 2012 12:07
Vote:
 

Even after adding EPiServer.Find.Cms.Conventions namespace, I'm getting the same error.

#63282
Nov 14, 2012 13:04
Vote:
 

In the Object Browser of EPiServer.Find.CMS (double click on the referenced dll in VS). Open the EPiServer.Find.Cms.Conventions-namespace and make sure that VisibleInFilemanagerVPPIndexingConvention is missing. If so please post the EPiserver.Find-version you are using and download the latest one from http://world.episerver.com/Download/Categories/Modules/EPiServer-Find/

Regards,
Henrik

#63286
Nov 14, 2012 14:00
Vote:
 

Hi,

Its working now. It was my fault, as I had typed it : FileIndexer.Instance.Conventions.ShouldIndexVPPConvention = new VisibleInFileManagerVPPIndexingConvention(), instead of : FileIndexer.Instance.Conventions.ShouldIndexVPPConvention = new VisibleInFilemanagerVPPIndexingConvention(). And we also need to use EPiServer.Find.Cms.Conventions-namespace. Thanks for your suggestions.

#63291
Nov 14, 2012 14:35
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.