Server Error in '/' Application.

Response status code does not indicate success: 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.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).

Source Error:


Line 1672:
Line 1673:        //var request = Constants.CLIENT_SERVICES + "Product?productId=" + ProductId + "&retailerId=" + retailerId;
Line 1674:        using (Stream s = client.GetStreamAsync(request).Result)
Line 1675:
Line 1676:        using (StreamReader sr = new StreamReader(@s))

Source File: c:\inetpub\vhosts\christensenjewelers.com\httpdocs\App_Code\Utility.cs    Line: 1674

Stack Trace:


[HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).]

[AggregateException: One or more errors occurred.]
   System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) +4684257
   Utility.CallProductDataServicebyProductId(Int64 ProductId) in c:\inetpub\vhosts\christensenjewelers.com\httpdocs\App_Code\Utility.cs:1674
   CategoryPages_ItemDetails.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\christensenjewelers.com\httpdocs\CategoryPages\ItemDetails.aspx.cs:64
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   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