Good day, I just uploaded a web application to azure.
I was working with a local database, it did not have credentials (user, pass), with windows authentication.
Now I'm using a remote database, the reports (.RDL) do not work, with the application I use to design the reports and update the datasource, but I guess I'm not saving the credentials, this is the connection string.
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=miservidor;Initial Catalog=DataBase</ConnectString>
</ConnectionProperties>
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=mvc.syncfusion.com;Initial Catalog=AdventureWorks;User ID=ssrs1;Password=RDLReport1</ConnectString>
</ConnectionProperties> |
public void OnInitReportOptions(ReportViewerOptions reportOption)
{
reportOption.ReportModel.ReportServerCredential = new System.Net.NetworkCredential("infraestructure", "password");
reportOption.ReportModel.DataSourceCredentials.Add(new DataSourceCredentials("DS_PERU_BOXHOUSE", "user", "password", "Data Source=miservidor;Initial Catalog=bd;User Id=ssrs1;password=password; Encrypt=True;", false));
} |
reportOption.ReportModel.ReportServerCredential = new System.Net.NetworkCredential("infraestructure", "password");
reportOption.ReportModel.DataSourceCredentials.Add(new DataSourceCredentials("DS_PERU_BOXHOUSE", "user", "password", "Data Source=miservidor;Initial Catalog=bd; Encrypt=True;", false)); |