Unable to connect to the remote server
We have developed a site using VS2008 and generating reports using SSRS 2008. It is working fine in development environment. But when we deploy the application on Production environment (the web site,Reporting services and DataBase on 3 servers) the reports are not shown. Getting the following error some times (not always) - Unable to connect to the remote server. A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.2.20.111:80. Can you please help us about this issue. my code string uri = ConfigurationManager.ConnectionStrings["ReportServer"].ToString(); this.rvReports.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote; this.rvReports.ServerReport.ReportServerUrl = new Uri(uri); this.rvReports.ServerReport.ReportServerCredentials = new CustomReportCredentials("administrator", "password", "domain"); rvReports.ServerReport.Timeout = -1; ReportBS bs = new ReportBS(); Hashtable ht = bs.GetReportInfo(id); this.rvReports.ServerReport.ReportPath = ht["ReportPath"].ToString(); public class CustomReportCredentials : Microsoft.Reporting.WebForms.IReportServerCredentials { // local variable for network credential. private string _UserName; private string _PassWord; private string _DomainName; public CustomReportCredentials(string UserName, string PassWord, string DomainName) { _UserName = UserName; _PassWord = PassWord; _DomainName = DomainName; } public System.Security.Principal.WindowsIdentity ImpersonationUser { get { return null; // not use ImpersonationUser } } public ICredentials NetworkCredentials { get { // use NetworkCredentials return new NetworkCredential(_UserName, _PassWord, _DomainName); } } public bool GetFormsCredentials(out Cookie authCookie, out string user, out string password, out string authority) { // not use FormsCredentials unless you have implements a custom autentication. authCookie = null; user = password = authority = null; return false; } } : : SocketException : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.2.20.111:80 : URL: http://10.0.9.11/Login/cnkireport/Reserved.ReportViewerWebControl.axd?ReportSession=x5b2fmftxnd5jn55lebtzi55&ControlID=ccfaa9ff1fc64b418349c5f98082eece&Culture=2052&UICulture=2052&ReportStack=1&OpType=ReportImage&StreamID=C_30iT1_1 : /CnkiLogin/cnkireport/Reserved.ReportViewerWebControl.axd : 10.0.9.5 : : False : : NT AUTHORITY\NETWORK SERVICE : ID: 10 : NT AUTHORITY\NETWORK SERVICE : False : System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
July 12th, 2011 2:28am

any help? I am confused that it get error sometimes .It works fine sometimes
Free Windows Admin Tool Kit Click here and download it now
July 12th, 2011 5:49am

mark up
July 12th, 2011 9:39pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics