CMSApplication.Init throwing exception

Sofia Khatoon asked on October 11, 2016 21:33

I am getting Method not found exception when invoking the CMSApplication.Init Method. Please see the stack trace below

Method not found: 'System.Text.RegularExpressions.Match CMS.Base.CMSRegex.Match(System.String)'.]

CMS.DataEngine.SqlHelper.ParseColumn(String column, String& expression, String& alias) +0 CMS.DataEngine.QueryColumn.FromExpression(String expression) +32 CMS.DataEngine.QueryColumnList.Add(String columns, Boolean extraColumns) +231 CMS.DataEngine.QueryColumnList.Add(IEnumerable1 columns, Boolean extraColumns) +146 CMS.DataEngine.DataQuerySettingsBase1.Columns(IEnumerable1 columns) +62 CMS.DataEngine.DataQuerySettingsBase1.Columns(String[] columns) +153 CMS.DataEngine.SettingsKeyInfoProvider.GetSettings(Int32 generation, String siteName) +114 CMS.DataEngine.SettingsKeyInfoProvider.LoadGenerationReader(Int32 generation, Object parameter) +40 CMS.DataEngine.ProviderDictionaryCollection.LoadGeneration(Int32 generation) +182 CMS.DataEngine.SettingsKeyInfoProvider.LoadSettings(String siteName) +461 CMS.DataEngine.SettingsKeyInfoProvider.GetValueInternal(String keyName, SiteInfoIdentifier siteIdentifier, Boolean nullIfNotFound) +73 CMS.Base.DebugHelper.GetDebugBoolSetting(String keyName, Boolean defaultValue, Boolean checkDisabled) +102 CMS.Base.DebugHelper.GetSetting(CMSStatic1 variable, String key, Boolean defaultValue, Boolean checkDisabled, Nullable1 initValue) +133 CMS.Base.DebugHelper.get_DebugDisabled() +108 CMS.Base.DebugHelper.ResetDebugSettings(Boolean createWebFarmTask) +52 CMS.Base.DebugHelper.SetApplicationStartDebug() +40 CMS.DataEngine.CMSApplication.Init() +1129

Recent Answers


Richard Sustek answered on October 12, 2016 10:00

Have you set the connection string to a proper Kentico database? It seems like either Kentico doesn't recognize the Setting keys (from CMS_SettingsKey) table and cannot parse the columns from this table (have you customized something?) or System.Text.RegularExpressions.Match method is not found in your environment somehow. Try making sure that this method exists and you can access it.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.