Server Error in '/v1_0/members' Application.

The remote server returned an error: (401) Unauthorized.

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: (401) Unauthorized.

Source Error:


Line 32: 
Line 33:         var productDBDetails = new DBHelper().GetGroupedProduct(country, groupCode, productFamilyGroup, linkType);
Line 34:         productDetails = new ChargifyHelper(country).GetProduct(productDBDetails.ProductId.ToString());
Line 35:         productDetails.productDB = productDBDetails;
Line 36: 

Source File: c:\websites\Security API live\v1_0\members\Signup\AU\UserSignup.aspx.cs    Line: 34

Stack Trace:


[WebException: The remote server returned an error: (401) Unauthorized.]
   System.Net.HttpWebRequest.GetResponse() +1751
   TrialMembership.Data.RestAccess.APIRequest(String path, String requestMethod, String requestContentType, IDictionary`2 headers, NetworkCredential AuthCredential) in c:\Development\REI Core Applications\FreeTrialMembership-2012\TrialMembership.Data\REST_Access\RestAccess.cs:73
   TrialMembership.Data.ChargifyHelper.GetProduct(String productId) in c:\Development\REI Core Applications\FreeTrialMembership-2012\TrialMembership.Data\Chargify_Access\ChargifyHelper.cs:198
   Signup_AU_UserSignup.Page_Load(Object sender, EventArgs e) in c:\websites\Security API live\v1_0\members\Signup\AU\UserSignup.aspx.cs:34
   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.4110.0