An error has occurred during report processing. Exception has been thrown by the target of an invocation. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
protected void Page_Load(object sender, EventArgs e) { this.ReportViewer1.LocalReport.EnableExternalImages = true; ReportViewer1.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(SetSubDataSource); this.ReportViewer1.LocalReport.Refresh(); } public void SetSubDataSource(object sender, SubreportProcessingEventArgs e) { e.DataSources.Add(new ReportDataSource("TermsDataSet_TERMS", "ObjectDataSource3")); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)