Getting error while run the sample application

Mar 30, 2010 at 7:18 AM

Hi,

I am getting below error while trying to search by location.

Below is the location address. Please advice.

result =
YelpSearchService.SearchLocation("650%20Mission%20St%2ASan%20Francisco%2A%20CA", 20, null, null);

An Error Occurred
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffe
r& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseDecimal(String value, NumberStyles options, NumberForma
tInfo numfmt)
   at System.Decimal.Parse(String s)
   at AjaxLibrary.Internal.JsonNumberSerializer.BaseDeSerialize(TextReader reade
r) in D:\DotNetRND\YelpAPISource\AjaxLibrary\Internal\JsonNumberSerializer.cs:li
ne 31
   at AjaxLibrary.JsonSerializer`1.ReadMemeber(TextReader reader, T result) in D
:\DotNetRND\YelpAPISource\AjaxLibrary\JsonSerializer.cs:line 242
   at AjaxLibrary.JsonSerializer`1.DeSerialize(TextReader reader) in D:\DotNetRN
D\YelpAPISource\AjaxLibrary\JsonSerializer.cs:line 224
   at AjaxLibrary.JsonSerializer`1.BaseDeSerialize(TextReader reader) in D:\DotN
etRND\YelpAPISource\AjaxLibrary\JsonSerializer.cs:line 416
   at AjaxLibrary.JsonSerializer`1.ReadMemeber(TextReader reader, T result) in D
:\DotNetRND\YelpAPISource\AjaxLibrary\JsonSerializer.cs:line 242
   at AjaxLibrary.JsonSerializer`1.DeSerialize(TextReader reader) in D:\DotNetRN
D\YelpAPISource\AjaxLibrary\JsonSerializer.cs:line 224
   at YelpAPI.YelpRequest`1.ProcessResponse(HttpWebResponse response) in D:\DotN
etRND\YelpAPISource\YelpAPILib\YelpRequest.cs:line 133
   at YelpAPI.YelpRequest`1.ExecuteRequest() in D:\DotNetRND\YelpAPISource\YelpA
PILib\YelpRequest.cs:line 51
   at YelpAPI.YelpSearchService.SearchLocation(String location, String category,
 String term, Int32 resultCount) in D:\DotNetRND\YelpAPISource\YelpAPILib\YelpSe
archService.cs:line 85
   at YelpAPI.YelpSearchService.SearchLocation(String location, Double radius, S
tring category, String term) in D:\DotNetRND\YelpAPISource\YelpAPILib\YelpSearch
Service.cs:line 90
   at YelpAPI.TestClient.Program.Main(String[] args) in D:\DotNetRND\YelpAPISour
ce\YelpAPITestClient\Program.cs:line 29

May 31, 2010 at 6:12 AM

Hello there,

There is bug in yelp core library classes. it does not provide valid attribute list for jason parsing. you can download updated classes from my server.

http://linkbuilder.milestoneinternet.com/Milestone-Yelp.rar

Regards

Sandip

Software Engineer

Milestone internet marketing Pvt Ltd.