Server Error in '/' Application.

The remote server returned an error: (500) Internal Server Error.

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 remote server returned an error: (500) Internal Server Error.

Source Error:


Line 16:         string mylink = string.Format("https://jag.journalagent.com/z4/xml_current_issue.asp?pdir=pajes");
Line 17:      System.Net.WebClient _wb = new System.Net.WebClient();
Line 18:        string _fulltext = _wb.DownloadString(mylink);
Line 19:        this.Volume = _fulltext.ToString().Substring(5, 2);
Line 20:        this.Issue = _fulltext.ToString().Substring(8, 1);

Source File: d:\Siteler\pajes\web\App_Code\GetCurrentIssue.cs    Line: 18

Stack Trace:


[WebException: The remote server returned an error: (500) Internal Server Error.]
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +380
   System.Net.WebClient.DownloadString(Uri address) +117
   GetCurrentIssue..ctor() in d:\Siteler\pajes\web\App_Code\GetCurrentIssue.cs:18
   include_menu.Page_Load(Object sender, EventArgs e) in d:\Siteler\pajes\web\en\include\menu.ascx.cs:12
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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