November Happy Hour will be moved to Thursday December 5th.

ContentProviderNotFoundException

Vote:
 

Hi.

Sometimes I get EPiServer.Core.ContentProviderNotFoundException.

I noticed that the error appears when I first visit site in a long time.

Stack Trace:

[ContentProviderNotFoundException: Page provider  was not found]
   EPiServer.DataFactory.TryGet(ContentReference contentLink, ILanguageSelector languageSelector, T& content) +526
   EPiServer.DataFactory.Get(ContentReference contentLink, ILanguageSelector languageSelector) +86
   EPiServer.DataFactory.Get(ContentReference contentLink) +193

What could be causing this error?

#85097
Apr 15, 2014 11:22
Vote:
 

I think I understand why this error occurs.

I have

public class SomeClass : IValidate<ContentData>
{
    public IEnumerable<ValidationError> Validate(ContentData instance)
    {
        //I do EPiServer.DataFactory.Get(ContentReference contentLink) here
    }
}
 

I think, this method called before EpiServer load ContentProvider on first visit site in a long time, because if I delete "DataFactory.Get", error not repeated.

Is that so?

#85325
Edited, Apr 23, 2014 10:38
* 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.