Hi there,
I have a ShippingProvider with the following code:
public override PriceRaw CalculateShippingFee(Order order) { var currencyId = "USD"; return new PriceRaw(15, new Dynamicweb.eCommerce.International.Currency(currencyId)); }
When I run it, the IIS work process crashes because a StackOverflowException occurs. It seems to crash when getting the current currency from either session or application state (not sure yet).
It works fine when I comment out the method and let the default implementation return null. I also tried getting the current currency like this:
return new PriceRaw(Convert.ToDouble(cost), order.PriceBeforeFees.Currency);
with the same result.
Any idea what's going on?
Imar