- May 15, 2015
- 31
- 18
- 58
- Home Country
- United States of America
In order to attempt to try to figure out what's going on I modified the schedule a direct plug-in code. I made the RunEPGImporter method public (obviously a hack and not something that should be permanent). I then added a button to the schedule direct plug-in which is clickable from the setup TV. The method calls the web service and imports the data into the database. It runs and imports the data from the web service with no issue when called from setup TV. This method is the same method that reported the exception in the TV service.
This is the exception that the TV service throws before and after the modifications.
[2015-05-22 05:20:39,337] [Log ] [SchedulesDirect EPG Client] [INFO ] - System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: The requested address is not valid in its context 127.0.0.1:50624
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SchedulesDirect.SchedulesDirectWebService.SchedulesDirectWebServiceProxy.download(String startTime, String endTime)
at SchedulesDirect.SchedulesDirectWebService.Download(DateTime startTime, DateTime endTime)
at SchedulesDirect.Plugin.SchedulesDirectPluginTVE3.RunEpgImport()
Googling the exception doesn't yield too much definitive. I'm not sure where to look or how to look further how to attempt to resolve this.
This is the exception that the TV service throws before and after the modifications.
[2015-05-22 05:20:39,337] [Log ] [SchedulesDirect EPG Client] [INFO ] - System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: The requested address is not valid in its context 127.0.0.1:50624
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SchedulesDirect.SchedulesDirectWebService.SchedulesDirectWebServiceProxy.download(String startTime, String endTime)
at SchedulesDirect.SchedulesDirectWebService.Download(DateTime startTime, DateTime endTime)
at SchedulesDirect.Plugin.SchedulesDirectPluginTVE3.RunEpgImport()
Googling the exception doesn't yield too much definitive. I'm not sure where to look or how to look further how to attempt to resolve this.