When to load database drive configuration settings in ASP.NET? -


at application start our application connects database , fetches language translation table , caches memory. code placed in application_start in global.ascx

the problem approach if database not available, there unhandled exception. because code set @ application_start, request , response not available.

i wondering if there's general lightweight approach this.

my plan implement singleton store state of connection attempt, , check on default routed page. it's solution, feel there's missing. there other approaches this?

the problem approach if database not available, there unhandled exception.

well handle then. implement retry policy in code if result not cached in memory fetch database once again.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -