In our develop environment all the ASP.NET application works just fine. However, when I deploy the site on the test machine, on some pages I get this exception:
This was a comment, but I had the same issue as well.
This error can occur when a trigger causes a database level exception. This will cause the transaction to be rolled back hence the exception.