Forum Discussion
Issues with Power BI Report Server
- 6 years ago
If you go into the folder "C:\Program Files\Microsoft Power BI Report Server\PBIRS\ReportServer"
and open the rsreportserver.config file you will find a setting called <SMTPUseSSL> I think this defaults to true.
If you are sending email via an internal smtp server then either it's SSL certificate is not valid or maybe it's not setup to use SSL. If it's not setup to use SSL, but it's not accessible via the internet then maybe it's OK to change this setting to <SMTPUseSSL>False</SMTPUseSSL>. If should be able to find out from you IT department if the smtp server is configured for SSL connections or not.
ps. I think you will have to stop and re-start PBIRS using the configuration tool for this setting to take effect.
I'm getting this error in the log file.
Can someone please help on this error for the email subscription in report server ?
emailextension!WindowsService_0!3980!09/05/2019-00:12:09:: e ERROR: Error sending email. Exception: System.AggregateException: One or more errors occurred. ---> System.Net.Mail.SmtpException: Failure sending mail. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpTransport.EndGetConnection(IAsyncResult result)
at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait(TimeSpan timeout)
at Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.Deliver(Notification notification)
---> (Inner Exception #0) System.Net.Mail.SmtpException: Failure sending mail. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpTransport.EndGetConnection(IAsyncResult result)
at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
--- End of inner exception stack trace ---<---
- d_gosbell6 years agoSuper User
If you go into the folder "C:\Program Files\Microsoft Power BI Report Server\PBIRS\ReportServer"
and open the rsreportserver.config file you will find a setting called <SMTPUseSSL> I think this defaults to true.
If you are sending email via an internal smtp server then either it's SSL certificate is not valid or maybe it's not setup to use SSL. If it's not setup to use SSL, but it's not accessible via the internet then maybe it's OK to change this setting to <SMTPUseSSL>False</SMTPUseSSL>. If should be able to find out from you IT department if the smtp server is configured for SSL connections or not.
ps. I think you will have to stop and re-start PBIRS using the configuration tool for this setting to take effect.
- jamezcua96 years agoHelper I
d_gosbell You are the man sir! This worked like a charm. Though If I need to stop/start PBIRS again, in which I already did, the config file went back to "True". Any feedback on this ?
- d_gosbell6 years agoSuper User
jamezcua9 wrote:
Though If I need to stop/start PBIRS again, in which I already did, the config file went back to "True". Any feedback on this ?
No, we have this configured on a couple of our PBIRS instances and I have not seen this setting change after a restart. Are you definitely editing the rsreportserver.config file? This is the master config file and it writes certain settings out to other config files used by PBIRS (there are about 4-5 sub-services that make up PBIRS)