I build a website, that:
- reads data from a website by HttpWebRequest
- Sort all Data
- Parse values of the data
- and give out newly
On local server it works perfect, but when I push it to my live server, the double.Parse fails with an error.
So:
– how to track what the double.parse is trying to parse?
– how to debug live server?
Lang is ASP.Net / C#.net 2.0
You probably have culture issues.
Pass
CultureInfo.InvariantCulturetodouble.Parseand see if it helps.To see the exception on the server, add
<customErrors mode="Off" />to the<system.web>element in web.config. (And make sure to remove it afterwords)Alternatively, you can setup a real error logging system, such as ELMAH, or check the server’s event log.