Hi All,
- I have to design Customizable Error message display which entered by Page Admin like "DB Server under maintanace will be back at 2 PM" need to display in user's login page.
- Since DB is not available while maintanance so I thought of storing in xml file.
- The WEB Site hosted in IIS. I have few doubts regarding that.
- To Store the Customizable Error message entered by Admin through his page before maintance, can I create XML Config file in App_Data folder?
- Whenever Admin entered the Info while loading user's page I will retreive that info and display if the error page.
- This method is feasible and will work everytime?
Thanks
Uttam KumarPosted Oct 10, 2022, 12:56 PM
If It is only about the Database then you can use the XML approach. But it'll require a bit of effort. There is absolutely nothing wrong.
I would like to suggest you use a static page approach. You can redirect to a static page while your site is under maintenance.
Sachin SinghPosted Oct 9, 2022, 6:38 PM
Is it just for DB maintanace downtime or downtime for complete website?
if Application domain under which the website is running is brought down that means All incoming requests coming to the ASP.NET site will be stopped. In that case, how will you manage reading xml?
If you will just stop the DB connectivity and will not stop the IIS then you can read from xml, there is nothing bad in your approach.