Server Error in '/' Application.

The remote server returned an error: (400) Bad Request.

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: (400) Bad Request.

Source Error:


Line 1650:
Line 1651:            client.Headers.Add(HttpRequestHeader.ContentType, "application/json")
Line 1652:            calculationResponse = client.UploadString("https://services.codeweavers.net/public/v3/JsonFinance/Calculate", calculationRequestJSON)
Line 1653:
Line 1654:        End Using

Source File: C:\inetpub\wwwroot\websites\Finance Calculators\Kawasaki\UK\Live v5\App_Code\Modules\modCore.vb    Line: 1652

Stack Trace:


[WebException: The remote server returned an error: (400) Bad Request.]
   System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) +303
   System.Net.WebClient.UploadString(Uri address, String method, String data) +167
   System.Net.WebClient.UploadString(String address, String data) +35
   modCore.FetchAccessoriesForModel(Page Page_, clsAssetItem Asset, DataRow SelectedFinish) in C:\inetpub\wwwroot\websites\Finance Calculators\Kawasaki\UK\Live v5\App_Code\Modules\modCore.vb:1652
   modCore.ProcessTemplateReplace(String Template, String[] ObjectCollection, Page Page_) in C:\inetpub\wwwroot\websites\Finance Calculators\Kawasaki\UK\Live v5\App_Code\Modules\modCore.vb:425
   modCore.ProcessTemplates(Page Page_, ControlCollection ControlCollection, HttpRequest Request_) in C:\inetpub\wwwroot\websites\Finance Calculators\Kawasaki\UK\Live v5\App_Code\Modules\modCore.vb:105
   select_accessory.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\websites\Finance Calculators\Kawasaki\UK\Live v5\select-accessory.aspx.vb:39
   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.4087.0