Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 133609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:27:49+00:00 2026-05-11T06:27:49+00:00

I’ve recently started work on a new project using EpiServer which I am totally

  • 0

I’ve recently started work on a new project using EpiServer which I am totally new to. One of my tasks requires me to write a custom page provider.

I have got the sample page provider working and loaded. I’ve also ensured that I have a Enterprise Developer licence as the functionality is only available with this licence.

So I’ve done a skeleton implementation of my page provider and entered the info into the web.config on my test site exactly as the XmlPageProvider sample does thusly:

    <pageProvider>       <providers>         <add entryPoint='26' capabilities='Create,Edit,Delete,Move,MultiLanguage'            name='custom' type='MyWebsite.CustomProvider,CustomPageProvider' />   <!--  <add filePath='~/externalPages.xml' entryPoint='26' capabilities='Create,Edit'           name='xml' type='CodeSamples.XmlPageProvider,XmlPageProvider' />-->       </providers>     </pageProvider> 

While we’re at it what is the entryPoint property referring to? I cannot find a satisfactory explanation for this anywhere. When I hit the page however I see the following.

Error occured 2/2/2009 10:07:26 AM User IP fe80::d0e0:16bf:c536:ad4d%10 User Agent Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618) Url http://ioc-dev-uk5:17003/cms/admin/default.aspx Referer (none)

Exception details: TypeInitializationException: The type initializer for ‘EPiServer.DataFactory’ threw an exception.

Stack trace:

[TypeInitializationException: The type initializer for ‘EPiServer.DataFactory’ threw an exception.] at EPiServer.Web.InitializationModule.Initialize(EPiServerSection config, Settings settings, ConnectionStringSettingsCollection connectionStringSettings) at EPiServer.Web.InitializationModule.StaticInitialization() at EPiServer.Web.InitializationModule.Application_BeginRequest(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

[Inner exception ArgumentException: Cannot create an instance of type MyWebsite.CustomProvider,CustomPageProvider] at EPiServer.Core.PageProviderMap.AddPageProvider(ProviderSettings pageProviderSetting) at EPiServer.Core.PageProviderMap.LoadPageProviders(ProviderSettingsCollection pageProvidersCollection) at EPiServer.Core.PageProviderMap..ctor(ProviderSettingsCollection pageProviders) at EPiServer.DataFactory..cctor()

As you can see this is fairly unhelpful. I’ve tried getting another licence, resetting IIS, rebooting the box, trying to work out what’s going on using reflector to look at the code in the EpiServer DataFactory, all to no avail.

I know it’s something really simple but what?! It’s been driving me mildly insane for about 2 days now.

Plaese Halp!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:27:50+00:00Added an answer on May 11, 2026 at 6:27 am

    Guess I’m answering this myself.

    It was really simple.

    Went in with reflector and found this:

    private void AddPageProvider(ProviderSettings pageProviderSetting) {     if (Type.GetType(pageProviderSetting.Type) == null)     {         throw new ArgumentException('Cannot create an instance of type ' + pageProviderSetting.Type);     }     PageProviderBase pageProvider = this.CreatePageProviderInstance(pageProviderSetting);     pageProvider.Initialize(pageProviderSetting.Name, pageProviderSetting.Parameters);     if (this._pageProviders.ContainsKey(UrlSegment.ReplaceIllegalChars(pageProvider.Name)))     {         throw new ArgumentException(string.Format('There is already a page provider with name {0} registered', pageProvider.Name));     }     this.AddPageProvider(pageProvider, false); } 

    The type name required the full namespace on it, so my web.config now looks like:

    <pageProvider>   <providers>     <add entryPoint='26' capabilities='Create,Edit,Delete,Move,MultiLanguage'        name='custom' type='MyWebsite.CustomProvider,MyWebsite.CustomProvider.CustomPageProvider' />   </providers> </pageProvider> 

    And we’re all up and working…

    Another example of bad error messaging. It should say ‘Could not locate type’ would have saved a lot of messing about.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 57k
  • Answers 57k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer VS is being kind. return Factory<MC, MT>::template Register<MC>(Type); should work… May 11, 2026 at 8:31 am
  • added an answer Remove it officially in SVN: $ svn rm --force output… May 11, 2026 at 8:31 am
  • added an answer It is actually used in C++, for all these not-is-a… May 11, 2026 at 8:31 am

Top Members

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.