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 326:        int.TryParse(Request.QueryString["tid"].ToString(), out tid);
Line 327:    }
Line 328:    var jsonD = client.DownloadString("team/get/" + AID + "/" + sid + "/" + catid + "/" + did + "/" + tid);
Line 329:    //string val = "team/get/" + AID + "/" + sid + "/" + catid + "/" + did + "/" + tid;
Line 330:

Source File: c:\Websites\msa\Public\team.cshtml    Line: 328

Stack Trace:


[WebException: The remote server returned an error: (500) Internal Server Error.]
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +389
   System.Net.WebClient.DownloadString(Uri address) +114
   ASP._Page_team_cshtml.Execute() in c:\Websites\msa\Public\team.cshtml:328
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +99
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +185
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +142


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