Hi, I need to create a new help check by api in sitefinity of a access to custom DataBase.
How I can do this?
Here is the documentation for custom health checks: www.progress.com/.../for-developers-implement-health-checks-for-your-custom-modules
Here is the documentation for custom health checks: www.progress.com/.../for-developers-implement-health-checks-for-your-custom-modules
Yes, I do this example but the application return an error "The configuration 'SampleModuleNoImpl_Config_RegHealthCheck' is not registered" when register a new module. So I researched and I found that I register the config with this code in Global.asax:
protected void Application_Start(object sender, EventArgs e)
{ Bootstrapper.Initialized += new EventHandler<Telerik.Sitefinity.Data.ExecutedEventArgs>(Bootstrapper_Initialized); }
void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
{
if (e.CommandName == "Bootstrapped")
Config.RegisterSection<SampleModuleNoImpl_Config_RegHealthCheck>();
}
But this didn't work for me either
SampleModuleNoImpl_Config_RegHealthCheck is the name of the configuration class you build? Does that class inherit from ConfigSection, IHealthCheckConfig? Can you confirm that when the application starts that break point gets get on the line Config.RegisterSection?
Yes, is my Configuration class.
Yes, I have: public class SampleModuleNoImpl_Config_RegHealthCheck : ConfigSection, IHealthCheckConfig
And, Yes the application is executing this code
So when does the error get thrown? When you try to implement it in the healthcheck config area?
So when does the error get thrown? When you try to implement it in the healthcheck config area?
I get the error when the new module is installing.