Problem with Get Live Rates

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Get the following error when try to update Live Rates -


The remote server returned an error: (404) Not Found.



Full message:

System.Net.WebException: The remote server returned an error: (404) Not Found. at System.Net.HttpWebRequest.GetResponse() at Nop.Plugin.ExchangeRate.McExchange.McExchangeRateProvider.GetCurrencyLiveRates(String exchangeRateCurrencyCode) at Nop.Services.Directory.CurrencyService.GetCurrencyLiveRates(String exchangeRateCurrencyCode) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Services\Directory\CurrencyService.cs:line 69 at Nop.Admin.Controllers.CurrencyController.List(Boolean liveRates)

The following line is a mystery

"f:\Own\NopCommerce\Sources\src\Libraries\Nop.Services\Directory\CurrencyService.cs:line 69"

As I have no F: Drive on my server and no Folder called"Own"

Help would be appreciated

PS:forgot to memtion using version 2.3

Thans
12 years ago
https://www.nopcommerce.com/boards/t/13375/currency-live-rate-404-error.aspx
7 years ago
hello please help I'm trying to pull the exchange rate for the central bank turkey, but I get an error
7 years ago
var request = WebRequest.Create("http://www.tcmb.gov.tr/kurlar/today.xml") as HttpWebRequest;
            using (WebResponse response = request.GetResponse())
            {
                KurKodu kodu = new KurKodu();
                Tur turu = new Tur();
                string kod = kodu.ToString();
                string tur = turu.ToString();
                var document = new XmlDocument();
                document.Load(response.GetResponseStream());
                var nsmgr = new XmlNamespaceManager(document.NameTable);
                var node = document.SelectSingleNode("/Tarih_Date/Currency[@Kod ='" + kod + "']/" + tur, nsmgr);
                var updateDate = DateTime.ParseExact(node.Attributes["Tarih_Date"].Value, "yyyy-MM-dd", null);

                var provider = new NumberFormatInfo();
                provider.NumberDecimalSeparator = ".";
                provider.NumberGroupSeparator = "";
                foreach (XmlNode node2 in node.ChildNodes)
                {
                    exchangeRates.Add(new Core.Domain.Directory.ExchangeRate()
                    {
                        CurrencyCode = node2.Attributes["currency"].Value,
                        Rate = decimal.Parse(node2.Attributes["rate"].Value, provider),
                        UpdatedOn = updateDate
                    }
                    );
                }
            }
I made such a change in the code Date of update but gives an error on the part of
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.