Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone, I am changing all reports in our system from crystal reports to SSRS
all the reports are located on a remote server, when I try to connect from localhost to the server using VPN no problems happen and the reports work fine but when I hosted the website on IIS of a server and tried to access the server report I am getting an error

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 "Server IP":"Port Number"


Stack Trace:

[SocketException (0x274c): 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 192.168.100.180:8080]
   System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +208
   System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) +464

[WebException: Unable to connect to the remote server]
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() +192
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) +51
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname) +12
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.ProxyMethodInvocation.Execute(RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod) +417
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID) +180
   Microsoft.Reporting.WebForms.ServerReport.EnsureExecutionSession() +79
   Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1 parameters) +64
   Microsoft.Reporting.WebForms.Report.SetParameters(ReportParameter parameter) +48
   ReportsVehicleLicense.Page_Load(Object sender, EventArgs e) +847
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


Note:
the website and reports are separated on different servers and I am trying to access the reports from the website server
Posted
Updated 15-Oct-15 3:00am
v2
Comments
AdamASPGeek 26-Oct-15 0:28am    
Have you open your port? Or check your firewall settings maybe?
Ahmed Abdulrazik 10-Nov-15 14:30pm    
thank you very much it was the port very thankful to you AdamASPGeek

1 solution

This is happen because of network problem, Go through the below link this might be helpful to you https://www.nsoftware.com/kb/xml/07240801.rst[^]
 
Share this answer
 
Comments
Ahmed Abdulrazik 15-Oct-15 10:26am    
thank you Naveen but this didn't help me any other suggestions ??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900