How can you code a page/handler independent of Umbraco to detect if the Umbraco database is available.
Hi,
We have a need to provide a service check handler inside our website which returns the status of the web application and the Umbraco database when polled from an external service. Note: if the website is unavailable then we are happy for it to return 404.
My attempts to implement this with a handler result in a YSOD when the database is stopped/unavailable.
'Cannot open database "xxxxxx" requested by the login...'
Is it possible to code a page/handler which can be called before Umbraco intercepts it. Ideally the code needs to be able to return the website id using 'System.Environment.MachineName' too.
How can you code a page/handler independent of Umbraco to detect if the Umbraco database is available.
Hi,
We have a need to provide a service check handler inside our website which returns the status of the web application and the Umbraco database when polled from an external service. Note: if the website is unavailable then we are happy for it to return 404.
My attempts to implement this with a handler result in a YSOD when the database is stopped/unavailable.
'Cannot open database "xxxxxx" requested by the login...'
Is it possible to code a page/handler which can be called before Umbraco intercepts it. Ideally the code needs to be able to return the website id using 'System.Environment.MachineName' too.
Any help will be gratefully received.
Scotty
I created the custom controller that doing connectivity check, like DB, Umbraco DB (by using Content Service), external services
is working on a reply...