The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
Well, problem mostly occurs with people who has seperate servers with SQL and IIS
What code do you apply to your sites if connection failed ? <
What code do you apply to your sites if connection failed ? <
Postet den
Are you asking what to do if your Web server doesn't connect to the SQL Server? Your question is a little unclear...<
Postet den
Exactly...
Let's say SQL server is down and IIS could not connect. How to address it<
Let's say SQL server is down and IIS could not connect. How to address it<
Postet den
write "The SQL server is unreachable at this time" write the footer and exit is typically what I do or I write "<!--db-->" as the only thing to the page so I know where the error is.<
Postet den
All things being equal, its best to code so that it crashes responsibly. (yes, there is a right and a wrong way to crash)
I've started programming my apps with a quick connection check. If it fails the check it redirects to a page that explains that the problem is ours, not the users, etc. and apologizes for the downtime. In the background it logs some information for me so I can do a little analysis later. I'm working on expanding that code so I can crash more responsibly my self.
<
I've started programming my apps with a quick connection check. If it fails the check it redirects to a page that explains that the problem is ours, not the users, etc. and apologizes for the downtime. In the background it logs some information for me so I can do a little analysis later. I'm working on expanding that code so I can crash more responsibly my self.
Email Member
Message Member
Post Moderation
Filopplasting
If you're having problems uploading, try choosing a smaller image.
Forhåndsvis post
Send Topic
Loading...