How do i simulate and handle the server not responding error? And which case do u think it might occur, as when u request a page from the server and if its not responding wouldnt it throw page cant be displayed error?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A server not responding would be a client-level error, which will be shown to you by the browser. You can’t handle it because due to the server not responding the control has not been given to your application yet.
Unless you’re talking about the database not responding to an application request. In which case an exception will be thrown which you could intercept by using the [HandleError] attribute or writing your own for that task.