I read this blog post. http://blogs.msdn.com/microsoftbob/archive/2009/08/20/a-wrapper-for-running-sql-server-2008-reporting-services-reports-anonymously.aspx We have a similar solution that We have been using it for a year now. We use the implementation of the IReportServerConnection2 interface to directly provide credentials to the report server. Since the last few months, we get this error randomly.
The main connection was closed. Failed to establish trust for the SSL / TSL channel. Internal exception: the remote certificate is not valid according to the verification procedure.
We always used SSL, and it works most of the day. Interestingly, when we get this error, we just go to the web.config of our ASP.NET application and change the timestamp of the file - reportviewer starts working again.
The SSL certificate is valid and reports are displayed in most cases. But as soon as we get this error, we need to change web.config to make it work again.
Any ideas. I appreciate your help.
source share