Server Error in '/' Application.

The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.

Source Error:


Line 149:                                  'Probeer via NameByKey de bijbehorende gegevens op te zoeken in Index Fungorum. 
Line 150:									System.Net.ServicePointManager.ServerCertificateValidationCallback = New System.Net.Security.RemoteCertificateValidationCallback(AddressOf MyValidateAnyCert)
Line 151:                                  oNode = Service.NameByKey(ifrecordnumber)
Line 152:                                  If oNode.HasChildNodes = True Then
Line 153:                                      species = oNode.SelectNodes("/IndexFungorum/NAME_x0020_OF_x0020_FUNGUS").Item(0).InnerText

Source File: C:\inetpub\wwwroot-tropicallichens\default.aspx    Line: 151

Stack Trace:


[WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.]
   System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) +355
   System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) +10
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +215
   org.indexfungorum.www.Fungus.NameByKey(Int64 NameKey) +92
   ASP.default_aspx.ShowLargeFrame() in C:\inetpub\wwwroot-tropicallichens\default.aspx:151
   ASP.default_aspx.Page_Load() in C:\inetpub\wwwroot-tropicallichens\default.aspx:52
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.<LoadRecursiveAsync>d__246.MoveNext() +282
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
   System.Web.Util.WithinCancellableCallbackTaskAwaiter.GetResult() +32
   System.Web.UI.<ProcessRequestMainAsync>d__523.MoveNext() +6641


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0