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\lorellisjewelry.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.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) +4393841
   System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) +13060447
   System.Threading.Tasks.Task`1.get_Result() +33
   Utility.CallProductDataServicebyProductId(Int64 ProductId) in c:\inetpub\vhosts\lorellisjewelry.com\httpdocs\App_Code\Utility.cs:1674
   CategoryPages_ItemDetails.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\lorellisjewelry.com\httpdocs\CategoryPages\ItemDetails.aspx.cs:64
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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