I have a LINQ to SQL / Unity / ASP.NET MVC / SQL Server application hosted on Azure. I use Lazy Evaluation throughout the site. The application uses a TCP connection with SQL Server, and every time I get the error "Transport layer when sending a request to the server." SqlException.
Well, since the request becomes materialized when it is called later in the code, I cannot just wrap a specific piece of code with try / catch.
Is there a way I can handle this exception by implementing an interface or attaching a delegate to a DataContext?
source
share