I'm attempting to catch just this exception and no other exceptions. I do not want to have to hard code the exception's message text and was hoping I could accomplish it by having a specific catch to catch a TimeoutException, but didn't know if that was the correct one or not. I do not have a good way of testing this catch before installing, so I wanted to see if the community had any information in regards to the type of exception that is being thrown when this error occurs.
Thanks in advance!
Private Sub RunCalculateProcess(calculateDailyLastRanTS As DateTime)
Try
Dim response = New CalculateWorkProxy(ProxyContractOptions.DevLocalIisExpress).Calculate()
Catch ex As TimeoutException
Logger.LogError(ex, "Timeout Error", "")
Catch ex As Exception
Logger.LogError(ex, "Every other exception", "")
End Try
End Sub