The type initializer for 'Ektron.Cms.LanguageHelper' threw an exception Error and What It Means

  • Updated

When trying to publish content, an error may be thrown:
The type initializer for 'Ektron.Cms.LanguageHelper' threw an exception

Typically this error stems from code that is making calls to the database and then not closing the connection. Making direct calls to the database is not recommended.

  1. Review the code on the template in which the error was thrown to see if there are any calls to the database. If so, verify that the connections are being closed properly.
  2. Another method is to increase the the Max Pool Size to a value like 200 (or higher) in the site's connection string for the SQL Server.
  3. Recycle the application pool for the site.