Get Price method not working on development environment

Prashant Verma asked on August 4, 2016 15:33

Hello everyone ,

I am facing an issue with Custom Shipping Provider GetPrice method API. I am amazed that its working fine on my development environment but when I moved that code logic to my another production server it do not work.

Can anyone suggest what I missing :( Below the code logic I have modified in Get Price to use my custom shipping. public decimal GetPrice(Delivery delivery, string currencyCode) { string queryPostCode = string.Empty; string shippingcost = "0"; if (HttpContext.Current.Request.QueryString["postcode"] != null) { queryPostCode = HttpContext.Current.Request.QueryString["postcode"].ToString(); shippingcost = Process(queryPostCode); } HttpContext.Current.Session["Shippingcost"] = shippingcost.ToString(); return Convert.ToDecimal(shippingcost); }

Recent Answers

Joshua Adams answered on August 4, 2016 15:41

Is the session set up the same way as it is on production? Do you get an error at all or does it just not do what you want it to? Have you tried debugging and seeing where it stops at?

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on August 4, 2016 16:12

The only thing i can think of is there may be a missing piece that is making the environment different. Some options are check how many files are in the App_Code in both environments and compare the file counts, perhaps?

Otherwise as Joshua said, i would debug. Just copy your live site folder down and set up a temporary IIS.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.