More in this section

Forums / General Discussions / The type initializer for 'Telerik.Sitefinity.Configuration.WebConfig' threw an exception.

The type initializer for 'Telerik.Sitefinity.Configuration.WebConfig' threw an exception.

3 posts, 1 answered
  1. Ryan Dailey
    Ryan Dailey avatar
    41 posts
    Registered:
    08 Mar 2010
    16 Feb 2012
    Link to this post
    I was trying to remove a few unused assemblies from my references when I suddenly got the following error.

    The type initializer for 'Telerik.Sitefinity.Configuration.WebConfig' threw an exception.
  2. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    17 Feb 2012
    Link to this post
    Hello Ryan,

    Can you tell us which dlls have you removed? If the site was working before deleting content from webconfig or assemblies / references the problem is most likely related to some missing data. Can you ensure that you have all project - required files in place and all handlers / settings in the webconfig? You can create a blank project and consult its preferences. Any additional information would be helpful.

    Kind regards,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. Ryan Dailey
    Ryan Dailey avatar
    41 posts
    Registered:
    08 Mar 2010
    01 Mar 2012
    Link to this post
    Hello,
    Thanks.  I created a brand new project and moved everything over.  That seemed to fix the problem.  Thanks for your help.
3 posts, 1 answered